Any unit which the "HandleDamage" eventhandler is applied to becomes impervious to all damage.
Description
Description
Details
Details
- Legacy ID
- 3760164505
- Severity
- None
- Resolution
- Not A Bug
- Reproducibility
- Always
- Category
- Scripting
Steps To Reproduce
- Create an unit in the editor.
- Add this to its init field "this addEventHandler ["HandleDamage", {}];"
- Spawn a second unit, preferably friendly to the first unit's side so that it doesn't shoot the player.
- Repeatedly shoot the EH applied unit.
Event Timeline
Comment Actions
This is how it should work http://community.bistudio.com/wiki/Arma_3:_Event_Handlers#HandleDamage
Comment Actions
As Killzone_Kid says, this is working as intended. You need to return the amount of damage you want to apply, otherwise no damage will be applied.