You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Extended_Init_EventHandlers {
class CAManBase {
class AAA {
init ="diag_log text format ['X: init [%1]',_this];";
};
class BBB {
onRespawn = 1;
init ="diag_log text format ['X: init onRespawn [%1]',_this];";
};
};
};
class Extended_InitPost_EventHandlers {
class CAManBase {
class CCC {
init ="diag_log text format ['X: InitPost [%1]',_this];";
};
class DDD {
onRespawn = 1;
init ="diag_log text format ['X: InitPost onRespawn [%1]',_this];";
};
};
};
After respawning:
CBA 2.2:
X: init onRespawn [[B Alpha 1-1:1 (Pabst Mirror)]]
X: InitPost [[B Alpha 1-1:1 (Pabst Mirror)]]
X: InitPost onRespawn [[B Alpha 1-1:1 (Pabst Mirror)]]
Current CBA:
X: init onRespawn [[B Alpha 1-1:1 (Pabst Mirror),56a40080# 163957: b_soldier_01.p3d]]
I am not sure why the non-respawn InitPost ran in 2.2. But I'm fairly sure we do want to run on the
onRespawn
version.https://github.com/CBATeam/CBA_A3/blob/master/addons/xeh/fnc_compileEventHandlers.sqf#L156
Should we change line 156 to
if (((_eventName == "init") || {_eventName == "initPost"}) && {getNumber (_x >> "onRespawn") == 1}) then {
The text was updated successfully, but these errors were encountered: