Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Check health/damage
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: Check health/damage (Read 841 times)
0 Members and 1 Guest are viewing this topic.
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.
Logged
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
Logged
bedges
Administrator
Re:Check health/damage
«
Reply #2 on:
10 Apr 2005, 12:49:03 »
http://www.ofpec.com/editors/comref.php?letter=G#getDammage
edit - heh, beaten to it
«
Last Edit: 10 Apr 2005, 12:49:28 by bedges
»
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
Check health/damage
Top of page