Skip to content

Commit

Permalink
fix onRespawn not working with initPost event, fix #318
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 committed Apr 29, 2016
1 parent 099cfc3 commit d682428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/xeh/fnc_compileEventHandlers.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private _resultNames = [];
};

// init event handlers that should run on respawn again, onRespawn = 1
if (_eventName == "init" && {getNumber (_x >> "onRespawn") == 1}) then {
if (toLower _eventName in ["init", "initpost"] && {getNumber (_x >> "onRespawn") == 1}) then {
_eventFunc = _eventFunc + "(_this select 0) addEventHandler ['Respawn', " + str _eventFunc + "];";
};
} else {
Expand Down

0 comments on commit d682428

Please sign in to comment.