(Tested singleplayer/editor only)
The current implementation of HandleDamages return value is only working with other units but the player itself like expected!
Description
Details
- Legacy ID
- 167161520
- Severity
- None
- Resolution
- Fixed
- Reproducibility
- Always
- Category
- Scripting
- Add this script example from the wiki page to your player
_es = this addEventHandler ["HandleDamage", {hint "IMMA INVINCIBLED!"; 0}];
- place some enemy units around
- get them shooting you
expected: 4. player will stay alive
http://community.bistudio.com/wiki/Arma_3:_Event_Handlers#HandleDamage
quote:
"Return value of 0 will make the unit invulnerable if damage is not scripted in other ways (i.e using setDamage and/or setHit for additional damage handling). "
Event Timeline
Download Dev branch or add pause before adding EH on Main branch
0 = this spawn {sleep 0.2; _this addEventHandler ["HandleDamage", {0}]}
due to bug still present on main branch
Tested it a few seconds ago
Its true
works like expected in dev version
it would be nice if i could get the knowledge about when the next update will arrive (because i need this function for my small mod im currently writing)