Blockland Forums > General Discussion

Is The Player-Light In The Blockland Folder?

Pages: << < (4/5) > >>

Daenth:


--- Quote from: curiosblockland6 on June 13, 2010, 10:59:01 AM ---I'm no scripter,But that may work,Find out for yourself?

--- End quote ---
It won't work.
Man you guys are stupid.

--- Quote from: LFOO on June 13, 2010, 10:25:35 AM ---echo(localclientconnection.player. light.getDatablock().getName());Green_Light

What about this?

--- End quote ---
Anything after the ";" in the console will break the code.
Do you not know what Space Guy's code is for?

EDIT:

--- Quote from: Space Guy on June 12, 2010, 05:36:17 PM ---Start a non-dedicated server
When you spawn, use the Light then put this in console:

--- Quote ---echo(localclientconnection.player. light.getDatablock().getName());
--- End quote ---

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.

--- End quote ---
Maybe this will give you a hint.

Butler:

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.

General:

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


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

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

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

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

SpreadsPlague:


--- Quote from: LFOO on June 13, 2010, 10:25:35 AM ---echo(localclientconnection.player. light.getDatablock().getName());Green_Light

What about this?

--- End quote ---

No, use the exact code Space Guy posted..

phflack:

the flare is in
blockland\base\lighting
just btw

Pages: << < (4/5) > >>

Go to full version