Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: getting units to jump from damaged plane  (Read 845 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 »