Warning: file_put_contents(/ff_4584e9b1ed73ec9b2a363801bf69e709416992b2973c4925.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
setDamage - OFPEC Scripting Command Reference | OFPEC The Editing Center

object setDamage damage

Operand types

object: Object
damage: Number

Type of returned value

Description

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

Note: this function is identical to setDammage.
It was introduced to fix a spelling error in the original function name.

Used In

OFP/ArmA

Example

soldier1 setDamage 1

Advertisement