OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Ade on 24 Jan 2004, 01:45:43

Title: Streetlights
Post by: Ade on 24 Jan 2004, 01:45:43
 ??? (again!)

I've nearly finished a mission but have one small problem remaining.  The mission is a night raid on a cluster of small buildings in Nogova (map ref Dj21).  However, there's a 5 Gigawatt streetlamp right in the middle, somewhat spoiling my 'daring raid with night vision goggles' scenario.

I got around it by using an artillery script snippet from OFPEC to drop a grenade near it, which seemed to do the job.

But then I placed a trigger to save the game when the player is a short distance from the target area.  If you get killed and resume from this point, the light is back on  >:(.

Is there a more elegant and permanent way of deactivating a light when it is one of the built-in island objects and not one added in the editor (which other posts all deal with)?

Cheers,

Ade
Title: Re:Streetlights
Post by: macguba on 24 Jan 2004, 01:49:45
object 1234 switchlight "off"

Obviously get the right number:  click on Show IDs and zoom in.   You may need to Preview the mission and have a look around to be sure you have the right object.   Also check the syntax.
Title: Re:Streetlights
Post by: Ade on 24 Jan 2004, 03:24:22
MacGuba,

Thanks again, although I'm a little embarrassed at how easy that was. ::)

Still, I'm learning.

 :cheers:

Ade