fnc_newSpawner.sqf 557 B

12345678910111213141516
  1. #include "function_macros.hpp"
  2. LOG("Triggered newSpawner");
  3. //wait for projectile to land and then spawn vehicle
  4. params["_module"];
  5. _position = position _module;
  6. LOGF_2("Firing Spawner Artillery at %1, for %2",_postition,_unit);
  7. [{
  8. params["_position"];
  9. _spawner = GVAR(spawnerDefaultObject) createVehicle _position;
  10. LOGF_2("Created Spawner %1 at %2",_spawner,position _spawner);
  11. [_spawner] call FUNC(spawnerInit);
  12. }, [_position], GVAR(fireSupportSpawnDelay)] call CBA_fnc_waitAndExecute;
  13. // fire projectile
  14. _this call ace_zeus_fnc_bi_moduleProjectile;