From Bohemia Interactive Community
Notes
- Posted on November 1, 2013
- neokika
-
More info at: http://forums.bistudio.com/showthread.php?167822-Stacked-event-handlers-OnEachFrame-OnPlayerConnected-etc
- Posted on February 11, 2014
- Killzone_Kid
-
onMapSingleClick EH expects a Boolean. If you are planning to return true and override default behaviour, make sure it is added last.
- Posted on 25 Jun, 2014
- ffur2007slx2_5
-
(ArmA3 1.22) Stack all codes into one PFH will be less demanding than separated calling within multiple PFH. E.g.
{
[(format [“%1”,_forEachIndex]),”onEachFrame”,_code,[_x]] call BIS_fnc_addStackedEventHandler;
} forEach [var0…var100]; //pretty demanding
[_id, ”onEachFrame”,{
{_x call _code} forEach [var0…var100];
}] call BIS_fnc_addStackedEventHandler; //faster
Bottom Section
- Posted on December 8, 2014 - 08:21 (UTC)
- DreadedEntity
-
It is not possible to override default engine behavior with stacked event handlers. This is because BIS_fnc_executeStackedEventHandler, a function that is called inside BIS_fnc_addStackedEventHandler, always returns false.