OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: marcinko on 09 Oct 2003, 05:42:51
-
I want to have my units jump from a Dakota transport plane after it's been damaged in my intro. I want to initiate this with a trigger but I'm not sure what the right command lines are to do so. I've got a script to get them to jump, i just don't know how to tie it in with the level of damage the transport plane is taking.
-
Howdy Marcinko!
You can use the getdammage command for that. Generally ,the value is between 0 for 100%health and 1 for dead. ;D
So in a trigger:
Condition: getdammage PlaneName >= 0.3 (where 0.3 would be 30% damage ...and no, I didn't misspell getdammage ;) )
OnActivation: [] exec "JumpScript.sqs"
:D 8)