OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Marksman on 05 Jul 2004, 13:16:14

Title: Can 'l svetlo' & 'p svetlo' be used on buildings?
Post by: Marksman 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:


(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
Title: Re:Can 'l svetlo' & 'p svetlo' be used on buildings?
Post by: teaCup 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.
Title: Re:Can 'l svetlo' & 'p svetlo' be used on buildings?
Post by: Tomb 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  :)