My EventHandler is programmed as function defined in CfgFunctions and added to a player.
Here is the code:
--------
private ["_unit", "_selectionName", "_damage", "_source", "_projectile"];
_unit = _this select 0;
_selectionName = _this select 1;
_damage = _this select 2;
_source = _this select 3;
_projectile = _this select 4;
diag_log format ["-------------HandleDamage-------------"];
diag_log format ["T=%1 : %2", time, _this];
diag_log format ["-------------HandleDamage End-------------"];
0;
--------
Just add that EventHandler to a player and let him shooten by a Enemy (KI or in MP a other Player). I did use the Workaround posted in http://feedback.arma3.com/view.php?id=6644 to avoid the BIS EventHandler and make the player invulnerable by returning 0. I do have the same behaviour in MP and SP.