Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isServer)then
- {
- //make the vip's group
- vip_defence_group = group vip_defence_teamleader;
- [vip,vip_defence_officer,vip_driver] joinSilent vip_defence_group;
- {
- if (_x == vip_driver) then {
- _x assignAsDriver hunter_unarmed
- } else {
- _x assignAsCargo hunter_unarmed
- };
- } foreach units vip_defence_group;
- (units vip_defence_group) orderGetIn true;
- waitUntil {count crew hunter_unarmed == 4};
- //i have to do it this way because thanks bohemia
- hunter_unarmed_group = group hunter_unarmed;
- hunter_armed_group = group hunter_armed;
- //set up waypoints
- _waypoint2marker=_this select 0; //first argument received is the first waypoint the hunters will move to
- _waypoint3marker=_this select 1; //the second argument is the house they'll hide in
- _waypoint4marker=_this select 2;
- //tell hunters to move
- _wp2u = hunter_unarmed_group addWaypoint [getmarkerpos _waypoint2marker, 0];
- _wp2u setWaypointType "MOVE";
- _wp2a = hunter_armed_group addWaypoint [getmarkerpos _waypoint4marker, 0];
- _wp2a setWaypointType "MOVE";
- //when hunter is close to the waypoint end tell infantry to leave the hunter
- waitUntil {hunter_unarmed distance (getmarkerpos _waypoint2marker) < 10};
- {_x leaveVehicle hunter_unarmed} foreach units vip_defence_group;
- _position = getPos vip;
- _house = nearestBuilding vip;
- _x = 0;
- _y = 0;
- _t = 0;
- _timeout = 0;
- _notbugged = true;
- _name = vehicleVarName vip;
- if (isNil _name) then {_name = "guard"};
- vip setBehaviour "SAFE";
- while { format ["%1", _house buildingPos _x] != "[0,0,0]" } do {_x = _x + 1};
- _x = _x - 1;
- vip setpos (_house buildingPos 1);
- _position = getPos vip_defence_officer;
- _house = nearestBuilding vip_defence_officer;
- _x = 0;
- _y = 0;
- _t = 0;
- _timeout = 0;
- _notbugged = true;
- _name = vehicleVarName vip_defence_officer;
- if (isNil _name) then {_name = "guard"};
- vip_defence_officer setBehaviour "SAFE";
- while { format ["%1", _house buildingPos _x] != "[0,0,0]" } do {_x = _x + 1};
- _x = _x - 1;
- vip_defence_officer setpos (_house buildingPos 1);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement