fn_baseVehSpawn.sqf 496 B

1234567891011121314151617181920
  1. private ["_this", "_base", "_fsmHandle", "_ret", "_result"];
  2. _type = [_this,0,"",[""]] call BIS_fnc_param;
  3. _base = [_this,1,[],["",[],objNull],[2,3]] call BIS_fnc_param;
  4. if (typeName _base == "OBJECT") then { _base = getPos _base; };
  5. if (isServer) then
  6. {
  7. _fsmHandle = [_type, _base] call AW_fnc_baseVehSpawnMachine;
  8. while { true } do
  9. {
  10. if (completedFSM _fsmHandle) exitWith {};
  11. };
  12. _ret = result;
  13. _ret
  14. } else {
  15. [[_type, _base], "AW_fnc_baseVehSpawn", false, false] call BIS_fnc_MP;
  16. };