OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: greg147 on 05 Jul 2005, 16:30:17
-
Hi all,
Searched about for this, I was sure I saw it somewhere before, but couldn't find it :P
How do I make a trigger activate when a map object has reached a certain level of damage?
Like hitting a building with a rocket, so a trigger activates when it reaches like 0.6 damage ;)
Thanks
-
Every mapobject has an ID number.
Click "View ID" (or som like that) in the editor, zoom in and find the IDnr of that object.
Example : 12536
For the damage level of that object use this in the condition field of a trigger :
getdammage object 12536 > 0.6
See what I mean?
-
Thats the one. Thanks ;D
I knew it was something like that. I was trying stuff like 'object xxxxxx damage > 0.6'
Close ;)
Thanks for the help 8)