Pass functions by "reference" to bis event handlers (#4898)

* Pass functions by "reference" to bis event handlers

* Add Doc

* Fix
This commit is contained in:
PabstMirror
2017-02-14 10:54:37 -06:00
committed by GitHub
parent 036bb0ecd4
commit dfca4fdcf8
6 changed files with 16 additions and 7 deletions

View File

@ -77,5 +77,5 @@ GVAR(greenLaserUnits) = [];
_unit call _fnc_processUnit;
}, 0.1, _fnc_processUnit] call CBA_fnc_addPerFrameHandler;
addMissionEventHandler ["Draw3D", FUNC(onDraw)];
addMissionEventHandler ["Draw3D", {call FUNC(onDraw)}];
}] call CBA_fnc_addEventHandler;