Shope 0 Posted April 22, 2008 Hi there, I have a few questions for a mission I'm working on. 1st, I have read everything I can find on how to load a chopper and have it wait for the troops to get in before it takes off but I cant get it to work. I created a group and gave the leader a waypoint to getin and then I created a helicopter with a waypoint to load, and then I synchronized the getin to the load and the chopper takes off anyways. 2nd How do I get a squad already incargo of a helicopter and have them eject out of it at a certain trigger? 3rd In order to save time how can I designate a group name to a group and just have one line like "group1 moveincargo helo1"? Share this post Link to post Share on other sites
Rommel 2 Posted April 23, 2008 1) Make sure its sync'd again, make sure the player isn't the leader. 2) {_x action ["eject",vehicle _x]} forEach units BRAVO_W1; 3) BRAVO_W1 = group this (in group Leaders init field.) Share this post Link to post Share on other sites
Shope 0 Posted April 23, 2008 Ok so my mission is an occupied island and when a trigger blufor detected by opfor is activated i have a pilot and a gunner board an mi17 and then fly over a certain place and then eject the squad that boarded it, the problem is that firstly the squad ejects all at the same time and secondly i cant get the pilot to "this flyinheight 200", i tried putting it into a move waypoint and a trigger but it doesnt work. Share this post Link to post Share on other sites
Pirin 0 Posted April 24, 2008 Put the "this flyheight 200" in the init field of the chopper itself. Share this post Link to post Share on other sites
Rommel 2 Posted April 24, 2008 Or <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">CHOPPER1 flyinHeight 200 and for the eject problem: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> [] spawn {{_x action ["eject",vehicle _x]; sleep 1.0} forEach units BRAVO_W1;}; Share this post Link to post Share on other sites
Shope 0 Posted April 24, 2008 Ok thanks for the help guys im getting closer to nailing this. Next problem, when the sqaud ejects and land on the ground they ingnore their waypoints and want to the leader tells them to board mi17 again, do i have to unassign the vehicle to them and if so how? Share this post Link to post Share on other sites
Pirin 0 Posted April 24, 2008 Shope, take a look at this: http://www.armaholic.com/page.php?id=3099 Share this post Link to post Share on other sites
Shope 0 Posted April 24, 2008 that script is in spanish Share this post Link to post Share on other sites
Pirin 0 Posted April 24, 2008 Erm, well, sure a few variable names are in Spanish, but all the scripting keywords are in English, as is the description of how to use use the script on the webpage I linked. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> //********************************************************************************* //** Script: Paratrooper.sqf ; ** Description: Forces a group to jump off if the leader does it. ; ********************************************************************************* ; ** Author: RAVEN ; ** Site: www.ArmedAssault.com.ar/Foros ; ** Linked from: http://www.armaholic.com/page.php?id=3099 ; ********************************************************************************* ; ** Call: [Group_name, Vehicle_name] execVM "Paratrooper.sqf"; ; ********************************************************************************* ; ** Comments: If we are the leader of the group we just have to jump and the ; ** rest will follow us, but if the group is formed by AI or we are ; ** part of it and we are not the leader, we just have to force him ; ** to jump using this: ; ** Leader_name ACTION ["EJECT", vehicle Leader_name] //********************************************************************************* _group = _this select 0; _vehicle = _this select 1; private["_waiting","_delay","_jumper"]; _waiting = true; _delay = 1; if ("PLANE" counttype [_vehicle] > 0) then {_delay = 0.5}; waitUntil {not (leader(_group) in _vehicle) or count units _group == 0}; for [{_i = 0}, {_i < count (units _group)}, {_i = _i + 1}] do { _jumper = ((units _group) select _i); _jumper action ["EJECT", _vehicle]; unassignvehicle _jumper; sleep _delay; }; There's Raven's SQF translated into English for you. Share this post Link to post Share on other sites
Shope 0 Posted April 24, 2008 it also require that the group already be incargo of the helicopter, im making it so that when a trigger is activated "blufor detected by opfor" then the squad and the pilot get in and then lift off towards the location and then eject. I managed to get everything working up the point when the sqaud hits the ground they say board mi17 again. Share this post Link to post Share on other sites
Shope 0 Posted April 24, 2008 ok never mind that script works i just hade to exec it into a different trigger, cool thanks buddy Share this post Link to post Share on other sites
Pirin 0 Posted April 24, 2008 If you wanted them outside the helo before it takes off you could use hold waypoint + a switch trigger on them. Simply leaving the helo on a H with a LOAD waypoint linked to the squad's GET IN waypoint would work as well. In that case though I think the chopper would start up upon init and wait running... Share this post Link to post Share on other sites
Shope 0 Posted April 27, 2008 How do i elevate a waypoint midair, i want a helicopter to fly at high altitude without being detected but the chopper just spins in circles Share this post Link to post Share on other sites
Pirin 0 Posted April 27, 2008 In the helo's init try: this flyInHeight ## Share this post Link to post Share on other sites