SWEFIDDE 0 Posted April 29, 2008 hi there i have a paradrop scritp that i was dowload from her http://www.armaholic.com/page.php?id=3099 it works very good. i have 3 squads how it works realygood. but in the 4 squad it onley the leader how is ejecting. i have put this to the ints field grpW1 = group this; {_x moveincargo heliW1} foreach units grpW1; {_x assignascargo heliW1} foreach units grpW1 grpW2 = group this; {_x moveincargo heliW2} foreach units grpW2; {_x assignascargo heliW2} foreach units grpW2 and grpw3 grpW4 = group this; {_x moveincargo heliW4} foreach units grpW4; {_x assignascargo heliW4} foreach units grpW4 and in the trigger i have put leader grpW1 ACTION ["EJECT", heliW1] 2 2 3 3 4 4 plzzz help me i realy need this script for my mission!! ´ her is the script ; ********************************************************************************* ; ** Script: Paratrooper.sqs ; ** Descripcion: Obliga a un grupo a saltar si su lider lo hace. ; ********************************************************************************* ; ** Autor: RAVEN ; ** Site: www.ArmedAssault.com.ar/Foros ; ********************************************************************************* ; ** Invocación: [Nombre_grupo, Nombre_vehiculo] exec "Paratrooper.sqs" ; ********************************************************************************* ; ** Comentarios: Si somos el lider del grupo, solo necesitamos saltar para que ; ** el resto nos siga, pero si el grupo es IA o formamos parte ; ** pero no somos el lider, solo debemos ordenar al lider que salte ; ** de ésta forma: ; ** Nombre_Lider ACTION ["EJECT", vehicle Nombre_Lider] ; ********************************************************************************* _grupo = _this select 0 _vehiculo = _this select 1 #espero @not (leader(_grupo) in _vehiculo) _max = count units _grupo _ord = 0 #salto ~0.5 _quien = ((units _grupo) select _ord) _quien action ["EJECT", _vehiculo] unassignvehicle _quien _ord = _ord + 1 ? _ord <= _max: goto "salto" #salida exit Share this post Link to post Share on other sites
Guest Posted April 29, 2008 It might be easier for people to help you if you would post the translated script <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">; ********************************************************************************* ; ** Script: Paratrooper.sqs ; ** Description: Forces a group to jump off if the leader does it. ; ********************************************************************************* ; ** Author: RAVEN ; ** Site: www.ArmedAssault.com.ar/Foros ; ********************************************************************************* ; ** Call: [Nombre_grupo, Nombre_vehiculo] exec "Paratrooper.sqs" ; ********************************************************************************* ; ** 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 Lider_name] ; ********************************************************************************* _grupo = _this select 0 _vehiculo = _this select 1 #espero @not (leader(_grupo) in _vehiculo) _max = count units _grupo _ord = 0 #salto ~0.5 _quien = ((units _grupo) select _ord) _quien action ["EJECT", _vehiculo] unassignvehicle _quien _ord = _ord + 1 ? _ord <= _max: goto "salto" #salida exit Share this post Link to post Share on other sites
SWEFIDDE 0 Posted April 29, 2008 Hi there!!! ye ofcourse but i cant read it.. i did just download the script lol thx a lot for the translation!!! but the thing is i dont have name det first 3 groups and it still works but the 4 group it works know when i name the group laeder but why du the first 3 grp work unnamed? thx alot any way Share this post Link to post Share on other sites
Rav_Raven 8 Posted April 30, 2008 You should appoint each group putting this in the beginning of their field leader: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Structure Group_Name = this group; {_x moveincargo Vehicle_Name} foreach units Group_Name; {_x assignascargo Vehicle_Name} foreach units Group_Name Exactly grpW1 = this group; {_x moveincargo heliW1} foreach units grpW1; {_x assignascargo heliW1} foreach units grpW1 Then you must run the script to keep waiting until the leader of the group jump: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Structure [Name Group, Helo Name] exec "Paratrooper.sqs" Exactly [GrpW1, HeliW1] exec "Paratrooper.sqs" For the leading jump (and the rest of the group continue to), you must force it to jump: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">Structure Leader Name ACTION [ "EJECT" vehicle Name] Exactly leader (GrpW1) ACTION [ "EJECT" leader vehicle (grpW1)] Share this post Link to post Share on other sites
Rommel 2 Posted May 1, 2008 INIT FIELDS OF A SINGLE UNIT IN EACH GROUP <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> GrpW1 = group this; {_x moveInCargo HeliW1} ForEach units GrpW1; GrpW2 = group this;{_x moveInCargo HeliW2} ForEach units GrpW2; GrpW3 = group this;{_x moveInCargo HeliW3} ForEach units GrpW3; GrpW4 = group this;{_x moveInCargo HeliW4} ForEach units GrpW4; TRIGGER <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> Condition: (Your conditions) OnActivation: nil = [] spawn {{{_x action ["EJECT",vehicle _x]; sleep 0.6; unassignVehicle _x} forEach units _x}forEach [GrpW1,GrpW2,GrpW3,GrpW4];}; http://rapidshare.de/files/39279589/example.Intro.rar.html Example Mish Share this post Link to post Share on other sites
mattxr 9 Posted May 1, 2008 This is the best script and works in MP without having 20 extra empty parashutes spawning when the players/ai jump... Quote[/b] ];--------------------------------- ;----------Eject1.sqs------------- ;-------By Matt Rochelle---------- ;-------------V1.0---------------- ; usage ; [nameofgroup,nameofplane] exec "nameofscript.sqs" _grp = _this select 0 _veh = _this select 1 _par = units _grp _i = 0 _j = count _par ~(random 3) #loo unassignvehicle (_par select _i) (_par select _i) action ["EJECT",_veh] _i=_i+1 ~.6 ?_j>_i:goto "loo" exit Name a group in there init Quote[/b] ]grp1 = group this; Name the helicopter to what u want e.g. heli1 then add this where ever you want them to eject usualy when an trigger gets activated when the heli fly over it [grp1,heli1] exec "eject1.sqs" Share this post Link to post Share on other sites
SWEFIDDE 0 Posted May 2, 2008 hi every one thx alot for all the respons. now i have 10 squad how is paradrop by trigger but iT do not work in the MP. when we start the map in mp we are ejecting drictly plz help how to keep the groups inside the dc3 until we are at trigger. heliw1 is a DC3 the pilot this moveindriver heliw1;this flyinheight 150; [grpW1, heliW1] exec "paratrooper.sqs" leader grpW1 = group this; {_x moveincargo heliW1} foreach units grpW1; {_x assignascargo heliW1} foreach units grpW1 trigger leader grpW1 ACTION ["EJECT", heliW1] Â Â Â Â Â Share this post Link to post Share on other sites
Rav_Raven 8 Posted May 3, 2008 You must allocate to the group inside the plane "before" to run the script (usually in the init). Failure to do so, the script will validate that the leader is not inside the plane and expel the group. Greetings. Share this post Link to post Share on other sites
SWEFIDDE 0 Posted May 3, 2008 but how do i do that then? is thats why the script do not work in mp? thx alot  Share this post Link to post Share on other sites
Rav_Raven 8 Posted May 3, 2008 The script works perfectly in MP, you must first put the group in the vehicle (via init or trigger) and then run paratrooper.sqs, at that precise order. Then the script verifies that the group is on board and wait for his leader jump to compel the rest to follow. Share this post Link to post Share on other sites
SWEFIDDE 0 Posted May 4, 2008 ok.. is this  rigth here. i am also runing arma on 1.12 patch. heliw1 is a DC3 the pilot this moveindriver heliw1;this flyinheight 150; [grpW1, heliW1] exec "paratrooper.sqs" leader grpW1 = group this; {_x moveincargo heliW1} foreach units grpW1; {_x assignascargo heliW1} foreach units grpW1 trigger leader grpW1 ACTION ["EJECT", heliW1]     Share this post Link to post Share on other sites
Rav_Raven 8 Posted May 5, 2008 That is correct. Anyway I will make a demonstration mission to understand the process. Share this post Link to post Share on other sites
SWEFIDDE 0 Posted May 5, 2008 thx alot!! you know some times it works and some times it dont works in mp but in editor our in sp it works 100% but i do not understand why it do not work in mp thas so wierd. thx Share this post Link to post Share on other sites
SWEFIDDE 0 Posted May 11, 2008 hellu need help!!! i am making a very big and a very nice MP mission here and i need a script for paradrop how works in MP. PLEEESSS HELP ME Share this post Link to post Share on other sites
Rav_Raven 8 Posted May 14, 2008 Sorry for the delay but my work has no mercy. Now download a demonstration of the use of mission of my script. MISSION DEMO (MP) Download (3.1 Kb) Greetings from Argentina. Â Note: You need rc_be32k.pbo Share this post Link to post Share on other sites
SWEFIDDE 0 Posted May 15, 2008 hi there THXXX ALOT I WILL TEST IT NOW CANT WHAIT!! HOPE IT WORK!! Share this post Link to post Share on other sites
SWEFIDDE 0 Posted May 15, 2008 omg it dont work for me the soldiers jump out in the water! and this plane dident got this error out of memory so i replace the plane whit M17. maybe i can send you my mission and you can se what i do wrong. but thx any way! Share this post Link to post Share on other sites
Rav_Raven 8 Posted May 15, 2008 Send me the mission to canoalej@hotmail.com. Greetings. Share this post Link to post Share on other sites
SWEFIDDE 0 Posted May 17, 2008 have you recive the e-mail? Share this post Link to post Share on other sites
Rav_Raven 8 Posted May 18, 2008 Yes. Review of the mission this Sunday. Greetings. Share this post Link to post Share on other sites
SWEFIDDE 0 Posted May 22, 2008 yes i have it!! thx alot for al the help but but it sill not workin for me in a decated server but a am so thanks ful to you guys that have tried to help me just so you konw! thx alot any way... did it work for you on a decated server? i run arma on patch 1.14 thx Share this post Link to post Share on other sites