From d68242865c6dbf1b2267a3bc808665af2b6f7913 Mon Sep 17 00:00:00 2001 From: commy2 Date: Sat, 30 Apr 2016 00:17:23 +0200 Subject: [PATCH] fix onRespawn not working with initPost event, fix #318 --- addons/xeh/fnc_compileEventHandlers.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/xeh/fnc_compileEventHandlers.sqf b/addons/xeh/fnc_compileEventHandlers.sqf index 42d258eef..6ded300b0 100644 --- a/addons/xeh/fnc_compileEventHandlers.sqf +++ b/addons/xeh/fnc_compileEventHandlers.sqf @@ -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 {