Home   Help Search Login Register  

Author Topic: Lamp is not working  (Read 972 times)

0 Members and 1 Guest are viewing this topic.

mystic80

  • Guest
Lamp is not working
« on: 08 Oct 2003, 05:13:48 »
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?

mystic80

  • Guest
Re:Lamp is not working
« Reply #1 on: 10 Oct 2003, 14:39:43 »
anyone? no way of doing it? sad... :'(