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.
When an aircraft lands on a Helipad building, it uses a 256-division circle (0=N, 32=NE).
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.
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.