setDamage
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
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
Examples
- Example 1:
_soldier1 setDamage 1
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- setDammage, damage, getDammage
Notes
Notes
Notes
- Ceeeb
- In OFP, setting a unit's damage to a negative value will set it's health to full, but impair their aim.

