hi there
I have created a lamp in the game but it seems that it doesnt work at night. the light won't switch on at night.
here is my script.
class StreetLamp{};
class LampPost: StreetLamp
{
scope=2;
icon = "\env_obj\icon\lamp.paa";
sound="empty";
simulation="fire";
VehicleClass="Ammo";
mapSize=0.8;
displayName="Lamp Post";
model="";
destrType="DestructTree";
cost=2000;
armor=150;
class WhiteLight
{
Shape="koulesvetlo";
color[] = {1.0, 1.0, 0.7, 0.5};
ambient[] = {0.5, 0.5, 0.3, 0.5};
position = "light";
size = 0.05;
brightness = 0.03;
};
};
class LampPostMetal: LampPost
{
scope=1;
model="\env_obj\build\rd_lp";
};
};
and also, rd_lp is my lamp post. Inside this model under memory there is only one component name light. is that correct?