1234567891011121314151617 |
- #include "function_macros.hpp"
- params ["_target"];
- if(!isServer) exitWith
- {
- LOG("Not Server, Exiting Dispenser Init");
- };
- LOG("Server, continuing on");
- LOGF_1("Initialising spawner %1",_target);
- _target setVariable [QGVAR(group), createGroup [opfor, true]];
- _target setVariable [QGVAR(maxUnits),GVAR(droidDispenserMaxUnitsGlobal)];
- _target setVariable [QGVAR(possibleUnits),GVAR(droidDispenserPossibleUnitsGlobal)];
- LOGF_1("Attempting to start PFH on %1",_target);
- _params= [_target];
- _handle = [FUNC(droidDispenserPFH), GVAR(spawnTime), _params] call CBA_fnc_addPerFrameHandler;
|