Page MenuHomeFeedback Tracker

Applying HandleDamage EH makes unit invulenrable
Closed, ResolvedPublic

Description

Any unit which the "HandleDamage" eventhandler is applied to becomes impervious to all damage.

Details

Legacy ID
3760164505
Severity
None
Resolution
Not A Bug
Reproducibility
Always
Category
Scripting
Steps To Reproduce
  1. Create an unit in the editor.
  2. Add this to its init field "this addEventHandler ["HandleDamage", {}];"
  3. Spawn a second unit, preferably friendly to the first unit's side so that it doesn't shoot the player.
  4. Repeatedly shoot the EH applied unit.

Event Timeline

MakeLoveNotWar edited Additional Information. (Show Details)
MakeLoveNotWar set Category to Scripting.
MakeLoveNotWar set Reproducibility to Always.
MakeLoveNotWar set Severity to None.
MakeLoveNotWar set Resolution to Not A Bug.
MakeLoveNotWar set Legacy ID to 3760164505.May 7 2016, 5:07 PM

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.