Home   Help Search Login Register  

Author Topic: getting units to jump from damaged plane  (Read 735 times)

0 Members and 1 Guest are viewing this topic.

marcinko

  • Guest
getting units to jump from damaged plane
« 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.

Mr.BoDean

  • Guest
Re:getting units to jump from damaged plane
« Reply #1 on: 09 Oct 2003, 10:17:59 »
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)
« Last Edit: 09 Oct 2003, 10:23:53 by Mr.BoDean »