Home   Help Search Login Register  

Author Topic: Check health/damage  (Read 838 times)

0 Members and 1 Guest are viewing this topic.

Offline Gron

  • Members
  • *
  • I'm gron
Check health/damage
« on: 10 Apr 2005, 12:47:34 »
Would like to know the simple line to put in a trigger to check if a unit is unharmed or not, in this case a chopper. Only find commands to give damage, but none to just check the damage.

Thanks in advance.

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Check health/damage
« Reply #1 on: 10 Apr 2005, 12:48:47 »
Try:
getDammage obj

Operand types:
obj: Object
Type of returned value:
Number
Description:
Object dammage in range 0 to 1

Example:
getDammage player

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:Check health/damage
« Reply #2 on: 10 Apr 2005, 12:49:03 »
« Last Edit: 10 Apr 2005, 12:49:28 by bedges »