setDamage

From Bohemia Interactive Community
Jump to: navigation, search
Introduced in Operation Flashpoint version 1.5Arguments of this scripting command don't have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

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:
object: Object
damage: Number
Return Value:
Nothing

Examples

Example 1:
_soldier1 setDamage 1

Additional Information

Multiplayer:
-
See also:
setDammage, damage, getDammage, setHit

Notes

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