World position (MSFS)

From FSDeveloper Wiki
Jump to navigationJump to search


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.

Mission structure

Flightplan
Weather definitions
Flight file
Mission script
Triggers
AirportLandingTrigger & AreaLandingTrigger · CounterTrigger · PropertyTrigger · ProximityTrigger · TimerTrigger
Actions
ObjectActivationAction · DialogAction · AdjustPayloadAction · ChangeAssistanceItemAction · FadeToColorAction · RandomAction · RequestTeleportAction · CountAction · ResetTimerAction · TimerAdjustAction · GoalResolutionAction & SubGoalResolutionAction · GrantRewardAction · PointOfInterestActivationAction · ActivateWaypointsAction · AITakeControlsAction · SendMessageToAIAction
Mission objects
Mission definition · Goal · LivingWorldExclusion · Camera
Calculator
Flow states
Events
Areas
Rectangle Area · Cylinder Area · Polygon Area · Corridor Area · InGameMarker
Library objects
Sim objects
RTC

Mission tools

MSFS Script Editor · BushTripInjector · BushMissionGen · MSFSLocalizer · SPB2XML · Little Navmap

Other

Example mission files
Porting FSX Missions to MSFS
Localisation
Click the links to access the topic pages (Default - Opens in same window).