Home   Help Search Login Register  

Author Topic: turn lights off?  (Read 671 times)

0 Members and 1 Guest are viewing this topic.

Offline mcnorth

  • Members
  • *
turn lights off?
« on: 08 Dec 2002, 09:56:44 »
Is there a way to turn the lights off in the towns on Nogova?

Randy

  • Guest
Re:turn lights off?
« Reply #1 on: 13 Dec 2002, 13:24:33 »
Here you go ,
Streetlamps.

Rather than a long winded, and prattish article, here's a nice simple way to do this. I take absolutely no credit :)

The addon collection by Armourdave & Kegetys is the place this addon comes from. Kudos to these lads for this :)

Anyway. http://www.opflashpoint.org/features/streetlamp.zip file.
put it in you addons folder.

Voila, you now have 4 new entries in the editor.

EMPTY
-----> Objects
----------> Streetlamp White
----------> Streetlamp Red
----------> Streetlamp Blue
----------> Streetlamp Yellow


To turn them on = this inflame true
to turn them off = this inflame false

These lamps are always off by default, and unlike the streetlamps found on the maps, they will not turn on at night automatically.

See ya randy
« Last Edit: 13 Dec 2002, 13:29:05 by Randy »

Offline mcnorth

  • Members
  • *
Re:turn lights off?
« Reply #2 on: 13 Dec 2002, 21:56:04 »
Randy,

Thanks for taking a run at this but the lights I want to turn off are not addons. I'm doing a perimeter defense type mission at night which is to be illuminated by flares. The town is illuminated at night by default and I want to turn those off.

mcnorth

Offline Ranger

  • Members
  • *
  • Hoo-ah!
Re:turn lights off?
« Reply #3 on: 13 Dec 2002, 22:47:34 »
One possible method is to have each street light be destroyed at the start of the mission by using the lights' objectIDs and the setdamage command.  I'm assuming that each street lamp has an object ID, but I haven't verified if this is true.
Ranger

Offline mcnorth

  • Members
  • *
Re:turn lights off?
« Reply #4 on: 14 Dec 2002, 05:02:14 »
You are the man, Ranger! That works perfectly.
Thanks,
mcnorth