Home   Help Search Login Register  

Author Topic: disabling street lights  (Read 1086 times)

0 Members and 1 Guest are viewing this topic.

colbob

  • Guest
disabling street lights
« on: 19 Apr 2005, 20:27:20 »
is there a way to turn off all street lights?

i need to create a mission where none of the ligths on the island work, so i dont need to be able to switch them on or off. Just plain dont work

if there is a way to set them so they are destroyed would be good.

what would i have to do to make say streetlight (object id 166) be dead

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:disabling street lights
« Reply #1 on: 19 Apr 2005, 20:39:39 »
In your init.sqs

object 666 setDammage 1

Or perhaps

object 666 switchLight "off"

Syntax not guaranteed.
Plenty of reviewed ArmA missions for you to play

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:disabling street lights
« Reply #2 on: 19 Apr 2005, 20:39:55 »
You would need to find the object ID's of all the streetlights on the island.

Then you would write:

object Idnumber switchLight "off"

You need to write that for each light, changing the object number each time of course.

Edit: Hmmm.......16 seconds macguba.   ::)


Planck
« Last Edit: 19 Apr 2005, 20:41:18 by Planck »
I know a little about a lot, and a lot about a little.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:disabling street lights
« Reply #3 on: 19 Apr 2005, 20:43:14 »
That's yet another pint of heavy you own me.   ;D
Plenty of reviewed ArmA missions for you to play

colbob

  • Guest
Re:disabling street lights
« Reply #4 on: 19 Apr 2005, 20:45:59 »
thanks alot all the editing info fell out of my head as i havent touched ofp for years.

still trying to remember my change the radio so all the channels changes music tracks.....it come back ..just a matter of bangin my head on the table :)