Poll

Am I an idiot for not knowing?

Yes
Sort of
No
Don't ask me, I'm busy on the toilet.
So idiotic, you're an alien.

Author Topic: Is The Player-Light In The Blockland Folder?  (Read 2744 times)

I'm just wondering because I'm trying to edit it to a glow-stick colour.


yes it is..

Where..? I've looked in every folder in a folder in a folder in the blockland folder (and so on...), and used the search thing but not found a thing.

Are you sure you checked every folder?

Are you sure you checked every folder?

Sure as the shore.

If im right the player light isnt an object, its a scritpt.

If your inventing a script for a glow stick then your gonna need to script the light.

If im right the player light isnt an object, its a scritpt.

If your inventing a script for a glow stick then your gonna need to script the light.

I might eventually, but for a start I was just gonna change it to a lime green light in the script.

Start a non-dedicated server
When you spawn, use the Light then put this in console:
Code: [Select]
echo(localclientconnection.player.light.getDatablock().getName());
If you then create a light type (look at the default Light_... add-ons) with that as the name it'll replace the default Player's Light in the wrench menu and when you press L.

Start a non-dedicated server
When you spawn, use the Light then put this in console:
Code: [Select]
echo(localclientconnection.player.light.getDatablock().getName());
If you then create a light type (look at the default Light_... add-ons) with that as the name it'll replace the default Player's Light in the wrench menu and when you press L.

So I put this in the code :

echo(localclientconnection.player. light.getDatablock().getGreen Light());

Or..?

echo(localclientconnection.player. light.getDatablock().getGreenLight());


No.

No as in 'No it's not in the Blockland folder', or 'no, Space Guy's code isn't correct'?

No as in YOUR code isn't correct.

No as in YOUR code isn't correct.

I'm not much of a coder myself, so I wouldn't know anyway, it was just a guess.

No as in YOUR code isn't correct.

echo(localclientconnection.player. light.getDatablock().getName());Green_Light

What about this?

echo(localclientconnection.player. light.getDatablock().getName());Green_Light

What about this?
I'm no scripter,But that may work,Find out for yourself?