Jump to content

Recommended Posts

Posted

This is related to this post:

in a nutshell: AI taxiing into death by rolling into to small Hangars.

BLUF: So my question is, is it possible to force AI to rearm and refuel on a predefined parking slot?
Right now, this is a vanilla ME mission repeadetly going for a bomb run. I "force" them to a hangar that fits them by occupying the other slots with uncontrolled planes.

The whatif question will be, how to handle, if i expand my mission to more aircrafts which might fit into the to small hangars?
I guess like bombers would not taxi into them, as they are defined as "large" or something else, but the small ones which are to wide like Su-25 or Mig-29 which are narrow enough but with two vertical stabilizers are crashing into Hangars which ment to be for planes like Mig-21 / F-1.

Is this a mapmakers problem? Because i never encountered that problem, which also could apply only to the Sinai map, because those hangars are of a special kind, we did not have before (as far as i know).
So forcing them to apron instead of a hangar would be fine. MOOSE? Anyone?

Posted

It is a map maker and AI taxi rules problem. Map maker because they decided to create those hangars and configured their size to be however large. AI taxi rules because the AI only have the 3d box of a given parking spot to decide whether or not they can park there and ignore any 3d collision meshes that they will run into on the way. 

There is a solution, though not the most obvious one. Which is also a bit of a mission editor oversight. With the landing task you can force AI to use specific parking spots. The landing, rearm, refueling task replaces that UI element with how long it takes to rearm. However the parking value still exists with the actual waypoint and group. A solution would be to place the waypoint as a landing waypoint, setup the desired parking values, then change the waypoint to the land, rearm, refuel waypoint task. You can then add waypoints as you desire. 

IIRC it is finicky if you select the parking spots for other waypoint and may reset the value. 

 

Alternatively it might be better to treat each take-off as its own flight and not using the land, rearm, refuel waypoint type. Tell AI to take-off and land at specific parking spots then respawn them via script or spawn in another flight to replace them. 

  • Thanks 1

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...