World position (MSFS)
From FSDeveloper Wiki
Jump to navigationJump to search
This page is a work-in-progress. Generic message - Please note some detail may possibly be missing or incorrect. |
Applicable |
---|
MSFS2024 |
MSFS2020 |
MS Flight |
LM P3D5 |
LM P3D4 |
LM P3D3 |
LM P3D2 |
LM P3D |
FS World |
FSXSE |
FSXA |
FSX |
FS2004 |
FS2002 |
XP11 |
XP10 |
XP9 |
You can define the position and orientation of objects in different ways. You can have a static position, move along with another object, or attach to a simobject node.
See MSFS Mission Script for general information about creating a mission script.
Defined with coordinates
You can define a position with just the coordinates, altitude/height, and rotations by using AttachedWorldPosition.
AttachedWorldPosition
Set a position and rotation.
WorldPosition | Latitude, Longitude, and Altitude (LLA) coordinates in 3D space. In the script editor this is defined in Decimal Degrees (DD) and meters. In the .xml file this is defined in Degrees/Minutes/Seconds (DMS) and feet. |
---|---|
AltitudeIsAGL | True: Height is Above Ground Level (AGL). False: Height is Above Mean SeaLevel (AMSL). |
LocalOffsetXYZ | Offset in meter in local scenario space. |
LocalOrientation | Rotation angles of Pitch, Bank, and, Head (PHB) in local scenario space. |
Orientation | Rotation angles of Pitch, Bank, and, Head (PHB) in 3D space. |
IsOnGround | True: Altitude is disregarded and object origin will be on the ground. |
InitWorldPosition
Uses the same properties as AttachedWorldPosition.
Defined with respect to another object
AttachedWorldObject
AttachedWorldObject
Define position relative to an object.
ObjectReference | Link to the object that will be the base for the position and orientation. |
---|---|
OffsetXYZ | Offset in meter relative to object. |
Orientation | Rotation angles of Pitch, Bank, and, Head (PHB) in 3D space. |
OrientationType | DEFAULT: Unknown. COMPOSITION: Unknown. |
NodeName | Name of a node inside a scene hierarchy. Default: _FIND_DEFAULT_ROOT_NODE_ |
IsOnGround | True: Altitude is disregarded and object origin will be on the ground. |
InitRelativeToWorldObject
Uses the same properties as AttachedWorldObject.
AttachedSimObjectInitialPosition
Attached to the start position of a SimObject. Uses the same properties as AttachedWorldObject.
Pages relevant to mission creation for MSFS.
- Flightplan
- Weather definitions
- Flight file
- Mission script
- Triggers
- Actions
- ObjectActivationAction · DialogAction · AdjustPayloadAction · ChangeAssistanceItemAction · FadeToColorAction · RandomAction · RequestTeleportAction · CountAction · ResetTimerAction · TimerAdjustAction · GoalResolutionAction & SubGoalResolutionAction · GrantRewardAction · PointOfInterestActivationAction · ActivateWaypointsAction · AITakeControlsAction · SendMessageToAIAction
- Mission objects
- Calculator
- Flow states
- Events
- Areas
- Library objects
- Sim objects
- RTC
Click the links to access the topic pages (Default - Opens in same window).