Jump to content
Sign in to follow this  
JJFLY

Air assault hoorah!

Recommended Posts

I have about 43 marines loaded into a c130

how would i make the c-130 fly over an area and have all the marines jump out and parachute to the ground?

Share this post


Link to post
Share on other sites

hmm... i think this should be moved to mission editing

btw: there are tons of tutorials about this out there smile.gif

Share this post


Link to post
Share on other sites

Okay i did it , but the problem is i have more than one squad , how would i edit it so that my other three squads jump too

Share this post


Link to post
Share on other sites

Dont know which script your using but the one I have is called parachute.sqs....

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">; Script name : parachute.sqs

_units = units group (_this select 0)

_helicopter = _this select 1

_i = 0

_Max = count _units

#Here

(_units select _i) action ["EJECT",_helicopter]

unassignvehicle (_units select _i)

_i=_i+1

~1

?_Max>_i:goto "Here"

exit

<span id='postcolor'>

To set it up for more than one squad use the following in a trigger....

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">[Group1Name,PlaneName] EXEC "PARACHUTE.SQS"; [Group2Name,PlaneName] EXEC "PARACHUTE.SQS"; [Group3Name,PlaneName] EXEC "PARACHUTE.SQS"

<span id='postcolor'>

Share this post


Link to post
Share on other sites

in having them all jump at once that will cause several 'chutes to collide and "kill" the soldier, i usualy ripple mine (ie one squad jump in say 100m then two squad jumps, another 100m then three squad jumps...though i expect with it being an aircraft the squads would be very drawn out due to speed...2 being 50-75m from 1 etc)

Share this post


Link to post
Share on other sites

_aunits = units L1,

_i = 0

_Max = count _aunits

#Here

(_aunits select _i) action ["EJECT",helo1]

unassignvehicle (_aunits select _i)

_i=_i+1

~1

?_Max>_i:goto "Here"

exit

thats the script i'm using

Share this post


Link to post
Share on other sites

forgot to add:

since you have 3 squads, you might want to do it one squad at a time.

so my way(dumb way) would be to name all soldiers in 3 squads and go

sq1 action ["EJECT",helo1]

unassignvehicle (sq1 select _i)

~1

.

.

.

and do it until the last one of them.

but if you want, you might be able to utilize code from above.

use that code, but at the end of the script, before 'exit' have some variable declared such as 'firstSquadJumped' to be true.

then make another trigger that takes 'firstSquadJumped' to be a true condition, and then do the same script with second squad. except that at the end, the script will declare new variable called 'secondSquadJumped' to be true. then again, make another trigger that takes 'firstSquadJumped' to be true in condition field, and then proceed with thirdd squad.

Share this post


Link to post
Share on other sites

lol thanks guys , but come on there's gotta be an easier way and i'm still confused, can't i just add L1, L2, L3 , like that?

i tried that and that didn't work

Share this post


Link to post
Share on other sites

well, as i said, easiest(and also dumbest) way is to name all soldiers and write a simple script that goes

sq1 action ["EJECT",helo1]

unassignvehicle (sq1 select _i)

~1

.

.

.

and do it until the last one of them.

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  

×