Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Lamp is not working  (Read 1257 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... :'(