Attempted Fix: spawn vehicle patrols in safe position.

This commit is contained in:
Chris Cardozo 2020-09-09 19:20:40 -04:00
parent f80db22642
commit 3eb13f9736

View File

@ -56,6 +56,7 @@ if (_missionPatrolVehicles isEqualTo []) then
[_vehGroup,_spawnPos,_coords,_crewCount,_crewCount,_skillAI,1,2,false,_uniforms, _headGear,_vests,_backpacks,_weaponList,_sideArms,_isScubaGroup] call blck_fnc_spawnGroup; [_vehGroup,_spawnPos,_coords,_crewCount,_crewCount,_skillAI,1,2,false,_uniforms, _headGear,_vests,_backpacks,_weaponList,_sideArms,_isScubaGroup] call blck_fnc_spawnGroup;
_missionAI append (units _vehGroup); _missionAI append (units _vehGroup);
blck_monitoredMissionAIGroups pushBack _vehGroup; blck_monitoredMissionAIGroups pushBack _vehGroup;
_spawnPos = _spawnPos findEmptyPosition[0,50,_vehicle];;
#define useWaypoints true #define useWaypoints true
_patrolVehicle = [_coords,_spawnPos,_vehicle,40,60,_vehGroup,useWaypoints,_crewCount] call blck_fnc_spawnVehiclePatrol; _patrolVehicle = [_coords,_spawnPos,_vehicle,40,60,_vehGroup,useWaypoints,_crewCount] call blck_fnc_spawnVehiclePatrol;