MSFS Mission Script - Actions

From FSDeveloper Wiki
Revision as of 16:58, 1 October 2021 by Mr LiamT (talk | contribs) (Fixed category)
Jump to navigationJump to search


All actions are fired in the order they’re listed in the ObjectReferenceList of the trigger that fired. This is important, because Dialog actions take time to play and will delay any actions that follow them. If a delay is set on a Dialog action, then the next action in the queue will be delayed by that amount. You can arrange the order in which actions in a given queue fire by changing the order manually in the .xml.

General attributes

Actions have a few general attributes:

Immediate

True: This action will start immediately
False: This action will wait for other actions to complete. The order is determined by the order the actions are fired, which is determined by the order the actions are listed in the trigger. This can be changed by manually editing the .xml.

BreakOnExecute

Function unknown.

Common actions

ObjectActivationAction

Very useful action to (de)activate objects such as triggers, InGameMarkers.

DialogAction

Plays dialog for the copilot and atc. It can use sound files or text-to-speech (TTS). The dialogAction can also show subtitles.

AdjustPayloadAction

Changes the payload during the mission.

ChangeAssistanceItemAction

Changes specific assistance items throughout the mission.

FadeToColorAction

Fades a color over the whole viewport. Useful for teleports and testing.

RandomAction

Chooses a random action from a list and can have a probability that an action executes.

RequestTeleportAction

Actions related to a trigger

CountAction

Changes the count of a CounterTrigger

ResetTimerAction

TimerAdjustAction

Changes the time of a TimerTrigger.

Event

EventTriggerAction

Flowstate

FlowEventAction

FlowStateAction

Action related to Mission objects

GoalResolutionAction & SubGoalResolutionAction

Changes the state of a Goal.

GrantRewardAction

Untested.

PointOfInterestActivationAction

(De)activates a point of interest

Action related to AI / Simobjects

ActivateWaypointsAction

Send waypoints to a Simobject for the AI to follow.

AITakeControlsAction

Changes control of the users' plane between user and AI.

SendMessageToAIAction

Currently useless

Not tested

AttachDroppablePayloadAction

AttachEffectAction

ChangeObjectTypeAction

CustomAction

DisqualifyPlayerAction

FailureAction

TimelineAction

OneShotSoundAction

PlayAnimationAction

PlaySoundAction

PlayBlendTreeStateAction

PlayFlightRecordingAction

PlayListAction

PlayReplayAction

RaceClockStartAction

RaceClockActivateAction

RefillAction

RTPCAction

RumbleAction

SpawnAction

StopSoundAction

TimePenaltyAction

SoundEffectAction

ChangeRopeLinkAction