Jump to content
Sign in to follow this  
charliereddog

get ai out of a player driven chopper

Recommended Posts

I'm having a really bad day. I can't for the life of me remember how to do this. The player has no waypoints, the ai squad have a waypoint and a guard waypoint. Once the player gets the chopper near the LS, how do I get the AI out?

Share this post


Link to post
Share on other sites

eJay, I'll try that thanks.

Mr-Murray, thanks, but neither of your options are relevant. The chopper needs to land so ruling out para drop, and the transport example won't work because as I stated, there are no waypoints for the pilot and I don't want there to be. Cheers anyway though.

Share this post


Link to post
Share on other sites

But notice...

You can use the para script to unload a truck, too. It´s not only for "Paras". This script includes the eJay variant.

It looks like this:

[Heli1,Group1] exec "unload.sqs"

Unload.sqs

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

_Chopper = _this select 0

_Group = _this select 1

;///ALTITUDE OF THE CHOPPER

@(getPos _Chopper select 2) < 2

;///SPEED OF VEHICLE

@speed _Chopper < 0.5

_aunits = units _Group

_i = 0

_j = count _aunits

#Here

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

unassignvehicle (_aunits select _i)

_i=_i+1

~2

?_j>_i:goto "Here"

exit

Best regards,

Mr-Murray

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  

×