damage

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint version 1.5Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.5

Description

Description:
Return the damage value of an object.

Syntax

Syntax:
Number = damage Object
Parameters:
Object
Return Value:
Number - The returned number is in range 0 (healthy) to 1 (dead).

Examples

Example 1:
? ((damage player)>0.1) : player groupChat "I'm hurt! Medic!"

Additional Information

Multiplayer:
Behaviour unknown.
See also:
setDamage

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Bottom Section

Personal tools
Buy ArmA now!