Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
AKK

Ai boarding choppers

Recommended Posts

I am making a mission where you are the medivac chopper pilot and the LZ is hot. And I mean hot!! wink_o.gif I have a problem though with AI boarding my chopper. They take forever like they are playing a game of poker before they board and can't be bothered to get on untill someone plays a straight flush.

In the mean time I'm gett'n shot to shit and usualy I dont get off the ground do to chopper dammage.I don't mind so much gett'n shot up but for some sort of realism I would like the AI to board faster so the pilot can make it out with the wounded. Now I have things in place to make sure the chopper has a hard time gettin in and out but the slow boarding kinda ruins the whole "Hot LZ" thing mad_o.gif

I wonder is there a way to force AI to board faster?rock.gif?

Share this post


Link to post
Share on other sites

I'm not sure if this will work, but I suppose its worth a shot. Here is the basic idea:

1) Make each guy in the squad move next to the helo

2) When they are close enough to the helo, play the "getting in helo" animation

3) After the animation plays, teleport the guy into the chopper via scripting commands

It may work via running this script on everybody you want to move into the helo, using this line for each guy:

[man, helo] exec "getin.sqs"

getin.sqs:

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

_helo = _this select 1

#Loop

_man domove getpos _helo

?_man distance _helo < 5 : goto "board"

~2

?alive _man && alive _helo : goto "Loop"

exit

#board

_man playmove "Cargo"

;//Not sure which animation to use here

~1.5

;//change this delay to fit with the animation

_man moveInCargo _helo

exit

Share this post


Link to post
Share on other sites

Thanks GB I'll give it a try. Cause I'm all out of in editor ideas I have tried everything from no weapons to weapons to safe ect....etc....etc. So far Ive noticed that they board fastest with weapons set aware and never fire but I 'm still on the ground at least 2+ mikes.

But thanks I'll go give it a whirl

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  

×