Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:

Damages / repairs the given object.

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

Note: This function is identical to setDamage, which was introduced to fix a spelling error in this command name.

Syntax

Syntax:object setDammage damage
Parameters:
  • object: Object - Affected object.
  • damage: Number - Amount of damage.
Return Value:Nothing

Examples

Examples:
_soldier1 setDammage 1;

Additional Information

See also: setDamage, damage, getDammage
Multiplayer:
Problems:

Notes







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