1
0

fnc_moduleOrbitalDroidDispenserServer.sqf 566 B

12345678910111213141516
  1. #include "function_macros.hpp"
  2. params["_pos"];
  3. LOGF_1("Firing Droid Dispenser Artillery at '%1'",_postition);
  4. [{
  5. params["_position"];
  6. if !(isServer) exitWith {};
  7. _spawner = GVAR(spawnerDefaultObject) createVehicle _position;
  8. LOGF_2("Created Droid Dispenser Object '%1' at '%2'",_spawner, position _spawner);
  9. [_spawner] call FUNC(droidDispenserInit);
  10. [{
  11. params["_unit"];
  12. {
  13. _x addCuratorEditableObjects [[_unit], true];
  14. } forEach allCurators;
  15. }, _spawner] call CBA_fnc_execNextFrame;
  16. }, [_pos], GVAR(fireSupportSpawnDelay)] call CBA_fnc_waitAndExecute;