Jump to content
Sign in to follow this  
Recipient

Parachuting works how?

Recommended Posts

I am convinced that the script for parachuting is useless, because they won't do it, even if I put the script on the second WP, which I set to Transport Unload. What do I need to do to get it correct?

Aesop

Share this post


Link to post
Share on other sites

what r u talking about? taking a heli and parachuten out the waypoin t?

or just parachuten out of no where when u start the game?

Share this post


Link to post
Share on other sites

'unitname action ["EJECT", heloname]' ought do the trick.

Remember to put 'unassignvehicle unitname' as well.

Share this post


Link to post
Share on other sites

This is what they guys are saying.

unitname action ["eject", heliname]; unassignvehicle unitname;

Rut that in every waypoint you want a guy to jump out and remember do only one guy per WP or bad things happen.

Share this post


Link to post
Share on other sites

to let jump out a group of units, use this:

A="EJECT"; "_x action [A,vehicle _x]" foreach (units group s1)

s1=leader of the group

A=action

_x=each unit of the group

but like this, it can happen, that these dummies jumping in the chute of other units and die.

here comes a solution with a script.

1. create a file with the name "ParaJump.sqs" in the same directory, where your mission.sqm is placed.

2. insert this code:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_units=_this select 0

_unit=ObjNull

_index=0

#Do

_unitold=_unit

_unit=_units select _index

@_unitold distance _unit>5

unassignVehicle _unit

_unit action["EJECT",vehicle _unit]

_index=_index+1

?_index<count _units:goto "Do"

<span id='postcolor'>

3. call it like this:

[units group s1] exec "ParaJump.sqs"

you can change the jump-frequency if you change the numer on the end of the line "... distance ..." maybe from 5 to 10 or so.

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  

×