View Full Version : Paratrooper.sqs
SWEFIDDE
Apr 29 2008, 15:05
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!!
http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/help.gif http://forums.bistudio.com/oldsmileys/help.gif http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif ´
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
@<hidden> (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
Foxhound
Apr 29 2008, 15:27
It might be easier for people to help you if you would post the translated script http://forums.bistudio.com/oldsmileys/wink_o.gif
<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
@<hidden> (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[/QUOTE]
SWEFIDDE
Apr 29 2008, 15:35
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 http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/biggrin_o.gif http://forums.bistudio.com/oldsmileys/biggrin_o.gif
RAV_RAVEN
Apr 30 2008, 01:43
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[/QUOTE]
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"[/QUOTE]
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)][/QUOTE]
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;
[/QUOTE]
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];};
[/QUOTE]
http://forums.bistudio.com/oldsmileys/tounge2.gif
http://rapidshare.de/files/39279589/example.Intro.rar.html
Example Mish
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"
SWEFIDDE
May 2 2008, 12:50
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]
http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif
http://forums.bistudio.com/oldsmileys/help.gif http://forums.bistudio.com/oldsmileys/help.gif http://forums.bistudio.com/oldsmileys/help.gif
RAV_RAVEN
May 3 2008, 05:22
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. http://forums.bistudio.com/oldsmileys/wink_o.gif
SWEFIDDE
May 3 2008, 07:33
but how do i do that then? is thats why the script do not work in mp?
thx alot http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/help.gif http://forums.bistudio.com/oldsmileys/help.gif
RAV_RAVEN
May 3 2008, 19:57
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.
SWEFIDDE
May 4 2008, 14:24
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]
http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/help.gif http://forums.bistudio.com/oldsmileys/help.gif http://forums.bistudio.com/oldsmileys/help.gif
RAV_RAVEN
May 5 2008, 01:21
That is correct.
Anyway I will make a demonstration mission to understand the process.
SWEFIDDE
May 5 2008, 15:24
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 http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/help.gif
SWEFIDDE
May 11 2008, 10:02
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
RAV_RAVEN
May 14 2008, 03:59
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 (http://200.58.114.81/~cr000493/scripts/Test_Paratrooper.rar) (3.1 Kb)
Greetings from Argentina. http://forums.bistudio.com/oldsmileys/biggrin_o.gif
Note: You need rc_be32k.pbo (http://www.armedassault.info/index.php?cat=addons&id=322)
SWEFIDDE
May 15 2008, 12:10
hi there THXXX ALOT I WILL TEST IT NOW CANT WHAIT!! HOPE IT WORK!! http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif
SWEFIDDE
May 15 2008, 12:26
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! http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/help.gif http://forums.bistudio.com/oldsmileys/help.gif
RAV_RAVEN
May 15 2008, 23:01
Send me the mission to canoalej@<hidden>.
Greetings.
SWEFIDDE
May 17 2008, 09:12
have you recive the e-mail?
RAV_RAVEN
May 18 2008, 07:26
Yes.
Review of the mission this Sunday.
Greetings.
RAV_RAVEN
May 19 2008, 04:48
received the mail?
SWEFIDDE
May 22 2008, 14:57
yes i have it!! thx alot for al the help but but it sill not workin for me in a decated server http://forums.bistudio.com/oldsmileys/sad_o.gif http://forums.bistudio.com/oldsmileys/sad_o.gif
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
http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif http://forums.bistudio.com/oldsmileys/welcome.gif
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.