Jump to content
Sign in to follow this  
UpRight

Helos collide...

Recommended Posts

I got a problem in my custom missions. When I put more than one AI controlled helicopters in a same group, they almost always collide. It's very annoying and frustrating. Does anybody have any solutions in this problem? Any tip or hint which even reduce collisions would help me a lot.

Share this post


Link to post
Share on other sites
I got a problem in my custom missions. When I put more than one AI controlled helicopters in a same group, they almost always collide. It's very annoying and frustrating. Does anybody have any solutions in this problem? Any tip or hint which even reduce collisions would help me a lot.

In unstoppable unless you use custom formations or individual groups, else they will collide because they are moving to they're constantly changing formation position. smile_o.gif

Share this post


Link to post
Share on other sites

What do you mean these "custom formations"? Can I make choppers in same group to fly in some formation which reduce collisions?

Share this post


Link to post
Share on other sites

When i was using more than one chopper (or plane) within

one group, i tended to give them different flying heights.

Formations of whatever kind can never be 100% of guarantee

that ai pilots won't find a way to crash together

tounge_o.gif

Different altitudes will do the trick for sure - but note that

in case of landing or taking off, the still could be a chance

of kaboooooum, but this is another story.

There you can do workarounds with setfuel timing (in case of

take off) - and in case of landing a small script (or waypoint type: scripted + script) can do the trick wink_o.gif

~S~ CD

Share this post


Link to post
Share on other sites

Go OFPEC.COM and find this script "HeliCAS - A Helicopter Collision Avoidance System for AI pilots by Mr.Peanut"

Share this post


Link to post
Share on other sites

Certainly not as complex and great as the one in OFPEC because it is a script for my specific mission situation, but here is a little script i made in one of my own mission offline where 4 choppers were flying (and were not in group) around a target , at the same flyinheight

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

~0.25

? (H1 distance H2) <= 20 : H1 setvelocity [0,20,20]

? (H1 distance H3) <= 20 : H1 setvelocity [0,20,20]

? (H1 distance H4) <= 20 : H1 setvelocity [0,20,20]

? (H2 distance H3) <= 20 : H2 setvelocity [0,-20,20]

? (H2 distance H4) <= 20 : H2 setvelocity [0,-20,20]

? (H3 distance H4) <= 20 : H3 setvelocity [0,0,20]

? stopit == 1 : goto "stopitall"

goto "thebigloop"

#stopitall

exit

With that script , i never experienced a chopper collision with those 4 helicopters despite flying at the same level.

But one of them was launched against a moutain smile_o.gif

Share this post


Link to post
Share on other sites

I just adjust waypoints and flyinheight settings each preview...

test it from all angles and be sure to also be in many different positions, sometimes the helo flies better without you onboard, othertimes it flies worse when your not onboard. Ive also seen changes depending wheter your in the back or in the gunner seat.. all sorts of different F ups!

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  

×