Home   Help Search Login Register  

Author Topic: Blowing out the Power  (Read 816 times)

0 Members and 1 Guest are viewing this topic.

OsamaHunter

  • Guest
Blowing out the Power
« on: 21 Apr 2003, 18:59:26 »
Yes I have a mission where the first team sneaks in and blows out all the street lights in Lipany so that the other teams may work in darkness. Is there a way for me to destroy all the streetlights at one time? I had one idea of placing satchels by all the streetlights in editor and when the 1st team detonates one all of them blowup. Only thing is I dont know where the street lights are located on the editor map. Help if you can.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Blowing out the Power
« Reply #1 on: 21 Apr 2003, 19:34:09 »
Click on the "Show IDs" button in the mission editor and zoom in.   You will see the IDs for all objects.    Some objects, like streetlights and road signs, do not appear on the map but do have IDs.    You'll have to wander around the town at night for a bit to find them all.

object 1234 setdammage 1

might come in handy.    ;)
Plenty of reviewed ArmA missions for you to play

OsamaHunter

  • Guest
Re:Blowing out the Power
« Reply #2 on: 21 Apr 2003, 19:37:14 »
Oh Ok thanks. I know I am going to miss a light but what the heck.

Kaliyuga

  • Guest
Re:Blowing out the Power
« Reply #3 on: 21 Apr 2003, 19:41:28 »
yep that does the trick for me...

the only thing that sucks is that you hear the objects getting destroyed (that annoying breaking fence sound ;D) as soon as the mission starts.  

So maybe you could have one explosion go off somewhere in the distance that is to "blow the town's transformer" and thus take the power out ;)
 
 I was fooling around with a mission sort of like this and I had one team that was supposed to go and take out the power grid while I waited at the edge of town.  Then the explosion happened that I had set up and I got to watch all the lights go out in the town via setdammage...  It worked
like a charm ;)


Incidentally... did you know that all objects are assigned ID numbers consecutively?
 so object 1  is literally the first object placed on a map and if you can find the highest ID number on an island that will tell you approximately how many total objects it contains :o  

Just a little useless OFP trivia...  lol ;D

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:Blowing out the Power
« Reply #4 on: 21 Apr 2003, 20:31:40 »
Just curious (my OFP:R crashed on me so I can't test it), but with the fancy new "show ID" function, can't you just find the streetlamps in question and:

Quote
lamppost switchLight mode

Operand types:
lamppost: Object
mode: String
Type of returned value:
Nothing
Description:
Controls lamppost mode. Mode may be "ON", "OFF", "AUTO". "AUTO" is default, lampost is on only during nighttime.

Example:
nearestObject [player, "StreetLamp"] switchLight "Off"

Except you change the whole nearestobject thingee to just the ID of the streetlamp....?

 ::) Just a thought.

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"

OsamaHunter

  • Guest
Re:Blowing out the Power
« Reply #5 on: 22 Apr 2003, 01:55:02 »
Wow thats a great command better than placing satchels at everyone.  Is it possible that I do it like this
1234,5678,9123 [player, "StreetLamp"] switchLight "Off"
instead of doing each lamp individually?

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Blowing out the Power
« Reply #6 on: 22 Apr 2003, 02:15:14 »
If you're using object id's, you don't need to use nearest object.

So:

"(object _x) switchlight {OFF}" foreach [1234,4678,9123]

would accomplish what you're after ;)

jepo

  • Guest
Re:Blowing out the Power
« Reply #7 on: 22 Apr 2003, 10:32:08 »
Also if that explosion sound is annoying you then you can just use a trigger that turns off sound for example

0 fadesound 0

and than when the explosion passes make another trigger with this

0 fadesound 1

Commando

  • Guest
Re:Blowing out the Power
« Reply #8 on: 25 Apr 2003, 13:42:06 »
I made a mission for mp once where I had a power station that took 1 hour to build.. :o
I had one little box where there where triggers with the swithclight command off in that shut down all lights on the whole island!!!
and then i had another box a few meters away that got back the power. ;D
It was really fun to annoy people with shutting down the power and the turning it back on. Is there anyone that know how to dim the lights a bit?
so that they aren't ultra powerful?