splatsh 10 Posted July 31, 2009 How to make chopper stand still and wait for "frank"/_group_2 ??? And when "frank" is inside chopper, then chopper go to waypoint "_waypoint_1" Now the chopper is unload the squad, then chopper fly away. frank and car is on there way to the chopper at that time, so I need to get the chopper to wait for him. How to? Here is my code so far. _this = createCenter west; _center_0 = _this; ////////////////////////////////////////////////////////////////////////////////////////////////////// // Create _vehicle_0 _this = createVehicle ["MH60S", [14649.822, 11875.108], [], 0, "FLY"]; _vehicle_0 = _this; _this setDir -73.528984; _this setVehicleVarName "heli"; heli = _this; ////////////////////////////////////////////////////////////////////////////////////////////////////// // Create Group_1 _group_1 = createGroup _center_0; _this = _group_1 createUnit ["USMC_Soldier_Pilot", [14649.822, 11875.108], [], 0, "FLY"]; _unit_1 = _this; _this setDir 182.9581; _this setVehicleVarName "pilot"; pilot = _this; _this setUnitAbility 0.60000002; if (true) then {_group_0 selectLeader _this;}; _this moveInDriver heli; _this = _group_1 createUnit ["USMC_Soldier_Pilot", [14649.822, 11875.108], [], 0, "FLY"]; _unit_1 = _this; _this setDir 182.9581; _this setVehicleVarName "pilot2"; pilot2 = _this; _this setUnitAbility 0.60000002; _this moveInCargo heli; _this = _group_1 createUnit ["USMC_Soldier_Pilot", [14649.822, 11875.108], [], 0, "FLY"]; _unit_2 = _this; _this setVehicleVarName "Gunner1"; Gunner1 = _this; _this setUnitAbility 0.60000002; _this moveInTurret [heli, [0]]; _this = _group_1 createUnit ["USMC_Soldier_Pilot", [14649.822, 11875.108], [], 0, "FLY"]; _unit_3 = _this; _this setVehicleVarName "Gunner2"; Gunner2 = _this; _this setUnitAbility 0.60000002; _this moveInTurret [heli, [1]]; ////////////////////////////////////////////////////////////////////////////////////////////////////// // Waypoint heli pilot team /_group_1 ////////////////////////////////////////////////////////////////////////////////////////////////////// _this = _group_1 addWaypoint [[12078.981, 12720.614], 0]; _this setWaypointType "TR UNLOAD"; _this setWaypointStatements ["true", "{unassignvehicle _x} foreach units Ohara;"]; _waypoint_0 = _this; _this = _group_1 addWaypoint [[14615.212, 12302.575, 0], 0]; _this setWaypointStatements ["true", "hint ""deleteVehicle heli"";"]; _waypoint_1 = _this; ////////////////////////////////////////////////////////////////////////////////////////////////////// // Create _vehicle_1 / M2 _this = createVehicle ["HMMWV_M2", [12737.207, 12256.813], [], 0, "CAN_COLLIDE"]; _vehicle_1 = _this; _this setDir 315.40115; _this setVehicleVarName "M2"; M2 = _this; ////////////////////////////////////////////////////////////////////////////////////////////////////// // Create _group_2 _group_2 = createGroup _center_0; _this = _group_2 createUnit ["FR_Light", [12738.283, 12255.289], [], 0, "CAN_COLLIDE"]; _unit_4 = _this; _this setVehicleVarName "frank"; frank = _unit_4; _this setUnitAbility 0.60000002; if (true) then {_group_2 selectLeader _this;}; ////////////////////////////////////////////////////////////////////////////////////////////////////// // Waypoint M2 team / _group_2 ////////////////////////////////////////////////////////////////////////////////////////////////////// _this = _group_2 addWaypoint [[12737.209, 12256.783], 0]; _this setWaypointType "GETIN NEAREST"; _waypoint_5 = _this; _this = _group_2 addWaypoint [[12696.206, 12299.229], 0]; _this setWaypointStatements ["true", ""]; _waypoint_6 = _this; _this = _group_2 addWaypoint [[12587.527, 12503.487, 0], 0]; _waypoint_7 = _this; _this = _group_2 addWaypoint [[12120.621, 12651.323, 0], 0]; _waypoint_8 = _this; _this = _group_2 addWaypoint [[12024.262, 12668.17, 0], 0]; _this setWaypointType "GETOUT"; _this setWaypointStatements ["true", "unassignVehicle frank;"]; _waypoint_9 = _this; _this = _group_2 addWaypoint [[12078.981, 12720.614], 0]; _this setWaypointType "GETIN NEAREST"; _this setWaypointStatements ["true", "frank assignAsCargo heli; [frank] orderGetIn true;"]; _waypoint_10 = _this; ////////////////////////////////////////////////////////////////////////////////////////////////////// // Create _group_3 _group_3 = createGroup _center_0; _this = _group_3 createUnit ["FR_OHara", [14649.822, 11875.108], [], 0, "CARGO"]; _unit_5 = _this; _this setVehicleVarName "Ohara"; Ohara = _unit_5; _this setUnitAbility 0.60000002; if (true) then {_group_3 selectLeader _this;}; _this moveInCargo [heli, 1]; _this = _group_3 createUnit ["FR_Miles", [14649.822, 11875.108], [], 0, "CARGO"]; _unit_6 = _this; _this setVehicleVarName "Miles"; Miles = _unit_6; _this setUnitAbility 0.60000002; _this moveInCargo [heli, 3]; _this = _group_3 createUnit ["FR_Rodriguez", [14649.822, 11875.108], [], 0, "CARGO"]; _unit_7 = _this; _this setVehicleVarName "Rodriguez"; Rodriguez = _unit_7; _this setUnitAbility 0.60000002; _this moveInCargo [heli, 2]; _this = _group_3 createUnit ["FR_Sykes", [14649.822, 11875.108], [], 0, "CARGO"]; _unit_8 = _this; _this setVehicleVarName "Sykes"; Sykes = _unit_8; _this setUnitAbility 0.60000002; _this moveInCargo [heli, 4]; ////////////////////////////////////////////////////////////////////////////////////////////////////// // Waypoint squad team / _group_3 ////////////////////////////////////////////////////////////////////////////////////////////////////// _this = _group_3 addWaypoint [[12048.579, 12682.741, 0], 0]; _this setWaypointStatements ["true", "[Ohara] join player; [Miles] join player; [Rodriguez] join player; [sykes] join player;"]; _waypoint_2 = _this; Share this post Link to post Share on other sites