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: Can 'l svetlo' & 'p svetlo' be used on buildings?  (Read 1368 times)

0 Members and 1 Guest are viewing this topic.

Marksman

  • Guest
Can 'l svetlo' & 'p svetlo' be used on buildings?
« on: 05 Jul 2004, 13:16:14 »
Hi,

Can 'l svetlo' and 'p svetlo' be used to create 2 light sources on a building?

I've added the following to the Memory LOD of the model:

  • l svetlo
  • p svetlo
  • konec l svetla
  • konec p svetla

(done so that the 'svetlo's are touching the building, and the 'konec svetlo's are a little way away from the building, in the correct direction for the light)

I've also added the class Reflectors{} to the config, copying the Reflectors{} defined for vehicles

However, when ingame, the lights don't turn on at night, even when a civilian car placed next to it has it's headlights lights on.

Any ideas?

Cheers,

Marksman

teaCup

  • Guest
Re:Can 'l svetlo' & 'p svetlo' be used on buildings?
« Reply #1 on: 05 Jul 2004, 14:32:03 »
From my experience, the thing that decides whether you can use a certain selection or not, is your "simulation=" value in the config.  So you might need something like:  "simulation=StreetLamp;"
But in that case, the building might not work as expected. I don't know if you can marry the two.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:Can 'l svetlo' & 'p svetlo' be used on buildings?
« Reply #2 on: 05 Jul 2004, 20:47:41 »
 :) you can make the building like you would a vehicle.

 ;D then in the config, just make some cheating codes, stuff like:

hasDriver=0;
hasGunner=0;
hasCommander=0;

etc.   no fuel, no wheels, just the building and some lights  :)