PoseDir
| Flag: | PoseDir |
| File(s): | rules(md).ini |
| Values: | Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767. |
| Default: | 0 |
| Applicable to: | AudioVisual |
Define the direction of aircraft landing.
Notes
Buildings with Factory=AircraftType use this value for the initial direction of any aircraft they produce, under the 256-division circle.
Buildings with HoverPad=yes spawn aircraft using the 256-division circle when [General]→SeparateAircraft=no.
When an aircraft lands on open ground, it uses an 8-division circle (0=N, 1=NE).
When an aircraft has Carryall=yes and lands with the purpose of picking up a vehicle, it will align with the direction of the target vehicle.
When an aircraft has FlyBy=yes, it does not turn to a specific direction but maintains its flight direction before landing.
- The vehicle picked up by it will immediately follow the aircraft's direction.
Bugs/Side-Effects/Unexpected Limitations
In fact, for regular aircraft that return to a helipad rather than a spawnee launcher unit, the actual landing direction always uses the direction of the airport building's body. For buildings preplaced on the map, it is the 256-division circle angle value specified by their 6th parameter. For buildings manually built by players, it is always 0 (due north, top right of the screen).
- Starting from Phobos Build#39, when landing on a helipad, it will follow PoseDir, and regardless of landing on a helipad or on open ground, the 256-division circle algorithm will be used.
- Starting from Phobos Build#49, this behavior can be reverted by setting AircraftDockingDir.DefaultToPoseDir=false.
References
Starting from Phobos Build#39, the landing direction can be defined separately on the helipad building, similar to DockingOffsetX, and can also be defined on the aircraft to override the settings on the airport building. Refer to Phobos documentation - Aircraft docking direction.
- If the building does not define AircraftDockingDir(N), then the aircraft's own LandingDir is used. Refer to Phobos documentation - Landing direction.
- If landing on the field, use the 256-direction circular orientation defined by PoseDir.
Starting from Phobos Build#49, the direction for landing on the field is determined by the 256-direction circular orientation defined by PoseDir.Field, which defaults to the value of PoseDir * 32 to maintain compatibility with the vanilla handling using the 8-direction circular orientation defined by PoseDir. Additionally, the direction in which aircraft are produced can also have a default value defined independently of PoseDir. Refer to Phobos documentation - Separate the definitions of default direction for aircraft production and landing in the field.