setDamage

From Bohemia Interactive Community

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

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.5

Description

Description:
Damage / repair object.

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

This function is identical to setDammage.

It was introduced to fix a spelling error in original function name.

Syntax

Syntax:
Object setDamage damage
Parameters:
damage: Number
Return Value:
Nothing

Examples

Example 1:
_soldier1 setDamage 1

Additional Information

Multiplayer:
Behaviour unknown.
See also:
setDammage, 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!