UpRight 0 Posted May 3, 2005 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
Rommel 2 Posted May 3, 2005 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. Share this post Link to post Share on other sites
UpRight 0 Posted May 3, 2005 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
Chris Death 0 Posted May 3, 2005 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 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 ~S~ CD Share this post Link to post Share on other sites
djukel 0 Posted May 3, 2005 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
General Barron 0 Posted May 3, 2005 Go OFPEC.COM and find this script "HeliCAS - A Helicopter Collision Avoidance System for AI pilots by Mr.Peanut" Dang, you beat me to it. Here is a link to that great script: http://ofpec.com/editors/resource_view.php?id=775 Share this post Link to post Share on other sites
Ex-RoNiN 0 Posted May 3, 2005 Go OFPEC.COM and find this script "HeliCAS - A Helicopter Collision Avoidance System for AI pilots by Mr.Peanut" Dang, you beat me to it. Here is a link to that great script: http://ofpec.com/editors/resource_view.php?id=775 This plus a height difference of 5-8 metres should do the trick Share this post Link to post Share on other sites
sanctuary 19 Posted May 4, 2005 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 Share this post Link to post Share on other sites
-HUNTER- 1 Posted May 4, 2005 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