Welcome, Guest Thursday 24th April 2014, 23:33:34
   Home   Help Search Login Register  

OFPEC Forum

Author Topic: How to detect a bridge/building being blown up?  (Read 338 times)
0 Members and 1 Guest are viewing this topic.
CaptainBravo
*
Offline Offline


« on: 28 Jul 2009, 10:42:52 »

Hi,
I have searched but could not find an asnwer to this specific question. I want a mission to end when a bridge/building is destroyed. The challange is how do you detect that in a trig since it is building in the map?

Thanks for your help.
Logged
laggy
*
Offline Offline


"Behold a pale horse"


« Reply #1 on: 28 Jul 2009, 15:01:59 »

Code:
damage (position player nearestObject 274849) >= 1
Where the number sequence is the id number of the object in the editor. Just replace my "274849" sequence with your wanted id number and it should work. The nearestObject thing is a needed workaround in Armed Assault, not sure if they fixed this in ArmAII or not. In that case the old OFP solution should work as well, but I doubt it.
Code:
damage (Object 274849) >= 1

Laggy
Logged

And I looked and beheld a pale horse and his name that sat on him was Death and Hell followed with him.
Pages: [1]   Go Up
  Send this topicPrint  
 
Jump to: