Jump to content
Sign in to follow this  
SWEFIDDE

Paratrooper.sqs

Recommended Posts

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!!

welcome.gifwelcome.gifwelcome.gifhelp.gifhelp.gifwelcome.gifwelcome.gifwelcome.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

@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

It might be easier for people to help you if you would post the translated script 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

@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

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 welcome.gifwelcome.gifbiggrin_o.gifbiggrin_o.gif

Share this post


Link to post
Share on other sites

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

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];};

tounge2.gif

http://rapidshare.de/files/39279589/example.Intro.rar.html

Example Mish

Share this post


Link to post
Share on other sites

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

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]

welcome.gif  welcome.gif  welcome.gif  welcome.gif

help.gif  help.gif  help.gif

Share this post


Link to post
Share on other sites

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. wink_o.gif

Share this post


Link to post
Share on other sites

but how do i do that then? is thats why the script do not work in mp?

thx alot welcome.gif  welcome.gifhelp.gifhelp.gif

Share this post


Link to post
Share on other sites

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

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]

welcome.gif  welcome.gif  help.gif  help.gif  help.gif

Share this post


Link to post
Share on other sites

That is correct.

Anyway I will make a demonstration mission to understand the process.

Share this post


Link to post
Share on other sites

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 welcome.gifhelp.gif

Share this post


Link to post
Share on other sites

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

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.  biggrin_o.gif

Note: You need rc_be32k.pbo

Share this post


Link to post
Share on other sites

hi there THXXX ALOT I WILL TEST IT NOW CANT WHAIT!! HOPE IT WORK!! welcome.gifwelcome.gifwelcome.gif

Share this post


Link to post
Share on other sites

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! welcome.gifhelp.gifhelp.gif

Share this post


Link to post
Share on other sites

Yes.

Review of the mission this Sunday.

Greetings.

Share this post


Link to post
Share on other sites

yes i have it!! thx alot for al the help but but it sill not workin for me in a decated server sad_o.gifsad_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

welcome.gifwelcome.gifwelcome.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×