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 2741 times)

I'm no scripter,But that may work,Find out for yourself?
It won't work.
Man you guys are stupid.
echo(localclientconnection.player. light.getDatablock().getName());Green_Light

What about this?
Anything after the ";" in the console will break the code.
Do you not know what Space Guy's code is for?

EDIT:
Start a non-dedicated server
When you spawn, use the Light then put this in console:
Quote
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.
Maybe this will give you a hint.

One thing if you get into scripting. NEVER use a space. Always use and underscore.

EDIT: That was inaccurate. That rule only applies in codes.

I'll do the easy part for you to save time...

Code: [Select]
datablock fxLightData(PlayerLight)
{
uiName = "Player's Light";

LightOn = true;
radius = 10;
brightness = 9;
color = "# # # #";

flareOn = true;
flarebitmap = "base/lighting/corona";
NearSize = 2;
FarSize = 1;
};

Just enter the color you want and package it as an Add-On.
You do know how to package, right?

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

What about this?

No, use the exact code Space Guy posted..

the flare is in
blockland\base\lighting
just btw

I'll do the easy part for you to save time...

Code: [Select]
datablock fxLightData(PlayerLight)
{
uiName = "Player's Light";

LightOn = true;
radius = 10;
brightness = 9;
color = "# # # #";

flareOn = true;
flarebitmap = "base/lighting/corona";
NearSize = 2;
FarSize = 1;
};

Just enter the color you want and package it as an Add-On.
You do know how to package, right?

So that goes in a CS Script in the add-on file along with the namecheck (notepad etc. file), and description (notepad etc. file again)? Oh, and I know one or two about textures, so I could make my own flare-thing.

I just figured it needs to be Spaceguy's code because this will just be a light...

I did it, thanks space guy, and the others.