From b069458314121b9a39e72c7286eb26f09fc513a7 Mon Sep 17 00:00:00 2001 From: commy2 Date: Wed, 16 Dec 2015 15:32:47 +0100 Subject: [PATCH] fix addClassEventHandlers not working for units that spawn inside vehicles --- addons/class_eventhandlers/fnc_init_loop.sqf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/class_eventhandlers/fnc_init_loop.sqf b/addons/class_eventhandlers/fnc_init_loop.sqf index 7fd2f1165..c8c063939 100644 --- a/addons/class_eventhandlers/fnc_init_loop.sqf +++ b/addons/class_eventhandlers/fnc_init_loop.sqf @@ -6,9 +6,8 @@ SCRIPT(init); GVAR(entities) = []; [{ - private _entities = entities ""; + private _entities = entities "" + allUnits; if !(_entities isEqualTo GVAR(entities)) then { - GVAR(entities) = _entities; // iterate through all objects and add eventhandlers to all new ones