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

object setDammage 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 setDamage which was introduced to correct the spelling error in this, the original command.

Used In

OFP/ArmA

Example

soldier1 setDammage 1

Advertisement