Jump to content
Sign in to follow this  
ruff

helicopter transport unload

Recommended Posts

i want all my units to disembark the chopper with me using the transport unload waypoint

ive searched and found this

i put in on a trigger with west activation and on the waypoint

act:cmd="GETOUT"; "_x action [cmd,dbh]" foreach units dd1

group being dd1 and chopper being dbh

but it doesnt seem to work once the helicopter has landed

it only ejects u when using a move way point

Share this post


Link to post
Share on other sites

It's because command "action get out" is insufficient - you need also "unassignVehicle" command to make units disembark vehicle.

Share this post


Link to post
Share on other sites

how do i write that?

Share this post


Link to post
Share on other sites

Try this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">; unload.sqs - getting group to disembark chopper

_helo = _this select 0

_group = _this select 1

{_x action ["get out", _helo]} foreach (Units _group)

"unassignVehicle _x" foreach (Units _group)

exit

To exec this script - [myhelo, mygroup] exec "unload.sqs" where - myhelo and mygroup are the names of your chopper and the group to disembark the chopper.

Btw, in general choppers in OFP can give you a headache so I'd highly recommend you to search for a specific script to use them in your mission. For a start read OFPEC Helicopter Tutorial by tflarsen which you can find here. And besides, on OFPEC site (editors depot) you'll find many useful scripts for choppers - take a look here.

Share this post


Link to post
Share on other sites

thanks will try

also ive read most the stuff at ofpec on choppers

i know scripts to do this but id rather just use activation and condition fields of triggers

but anyway thanks m8

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  

×