setDammage

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint version 1.00

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

Description:
Damage / repair object.

Damage 0 means fully functional, damage 1 means completely destroyed / dead.

This function is identical to setDamage.

setDamage was introduced to fix a spelling error in this operator's name.

Syntax

Syntax:
Object setDammage damage
damage: Number
Return Value:
Nothing

Examples

Example 1:
_soldier1 setDammage 1

Additional Information

Multiplayer:
Behaviour unknown.
See also:
setDamage, damage, getDammage

Notes

Notes

+ Add Note

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

Notes

Ceeeb
In OFP, setting a unit's damage to a negative value will set it's health to full, but impair their aim.


Bottom Section

Personal tools
Buy ArmA now!