Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!isServer) exitWith {};
- //sleep 1800; // 30-minute countdown
- // Create invisible helipad for helicopter to land on and as point-of-reference for waypoint creation
- QRF_H1_LZ = "Land_HelipadEmpty_F" createVehicle [0,0,0];
- // Get random position 200-300m away in random direction from randomly selected player - depends on alias_hunt.sqf
- pos_H1_LZ = [hunt_alias,200+random 100, random 360] call BIS_fnc_relPos;
- QRF_H1_LZ setpos pos_H1_LZ;
- // Create Helicopter 1 at Spawn Marker
- H1_AR = [MarkerPos "QRF_H1_S", 0, "rhs_mi8mt_vdv", EAST] call bis_fnc_spawnVehicle;
- H1 = H1_AR select 0;
- H1_G = H1_AR select 2;
- H1 engineOn false;
- // Orient helicopter to LZ
- H1_DIR = H1 getDir QRF_H1_LZ;
- H1 setDir H1_DIR;
- H1 setPos [(getPos H1) select 0, (getPos H1) select 1, 10];
- H1 flyinheight 40;
- // Set Pilot behaviour
- H1_G setCombatMode "BLUE";
- H1_G setBehaviour "CARELESS";
- H1_G setSpeedMode "FULL";
- // Create H1's first waypoint at generated LZ
- H1_W1 = H1_G addWaypoint [getPos QRF_H1_LZ, 0];
- H1_W1 setWaypointType "TR Unload";
- // Pilot behaviour to S&D-friendly settings on completion (?)
- H1_W1 setWaypointStatements ["true",""];
- // Create H1's search-and-destroy waypoint at selected player
- H1_W2 = H1_G addWaypoint [getPos hunt_alias];
- H1_W2 setWaypointType "SAD";
- H1_W2 setWaypointBehaviour "AWARE";
- H1_W2 setWaypointSpeed "LIMITED";
- H1_W2 setWaypointStatements ["True",""];
- // Create Infantry Group 1
- _spawnPos = getMarkerPos "QRF_H1_S";
- private _group = createGroup [east, true]; // explicitly mark for cleanup
- private _unit = _group createUnit ["O_Soldier_SL_F", _spawnPos, [], 0, "NONE"];
- private _leader = group _unit selectLeader _unit;
- private _counter = 0;
- while {_counter < 12} do { // {_counter < # } - Num units of type to spawn
- _newUnit = "O_Soldier_F" createUnit [_spawnPos, _group];
- _newUnit = "O_Soldier_F" createUnit [_spawnPos, _group];
- _newUnit = "O_Soldier_LAT_F" createUnit [_spawnPos, _group];
- _newUnit = "O_Soldier_AR_F" createUnit [_spawnPos, _group];
- _counter = _counter + 4;
- };
- // Move Infantry Group 1 into cargo
- // _group moveInCargo H1;
- // Create infantry "Get out" waypoint at LZ
- I1_W1 = _group addWaypoint [getPosATL H1, 0];
- I1_W1 setWaypointType "GETIN";
- I1_W1 waypointAttachVehicle H1;
- I1_W2 = _group addWaypoint [getPos QRF_H1_LZ, 0];
- I1_W2 setWaypointType "GETOUT";
- [H1_G,0] synchronizeWaypoint [_group,1];
- // Create infantry S&D waypoint at selected player's pos
- I1_W3 = _group addWaypoint [getPosATL hunt_alias, 0];
- I1_W3 setWaypointType "SAD";
- I1_W3 setWaypointStatements ["true",""];
- I1_W3 waypointAttachVehicle hunt_alias;
- // Attach waypoint to selected player
- // I_W2 waypointAttachObject hunt_alias; // - Probably won't work since it asks for an object ID
- // Transfer all AI to HC
- [true] call potato_zeusHC_fnc_transferGroupsToHC;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement