NOTE
This page is currently WIP and will be improved and finalised in future updates.

On this page you can find listed all the available actions that can be used by the SimConnect_ExecuteAction function, along with the parameters that they require.

 

 

OneShotSoundAction

Plays the specified sound file.

 

This action has the following parameters:

 

NameTypeDescription
SoundFileNameTextFilename of the sound file.

 

 

DialogAction

Will display and play a dialog in the adventure window.

 

This action has the following parameters:

 

NameTypeDescription
TextText
SoundFileNameTextFilename of the sound file
PackageNameTextFilename of the package
DelaySecondsFloatNumber of seconds to delay
TargetPlayerGUID

One of the specially defined GUIDs to refer to relative targets:

  1. Local User: {8B7615FA-BBBF-4baa-B959-5EF4F59BB575}
  2. All Players: {D09ADD85-4CA8-4be9-939C-4544BA259DA2}
  3. Trigger: {9A82F89B-F271-4285-AE90-1F733945D975}
  4. All Players Except Trigger: {D2764AC8-FBB3-4b9b-9721-3C3EA0CB402B}
SkippableBoolIf true the animation is skippable
SpeakerTextSpeaker
PriorityEnumPriority for a dialog
CanBeSuspendedBoolA dialog can be suspended

 

 

AITakeControlsAction

AI takes controls.

 

This action has the following parameters:

 

NameTypeDescription
AIControlEnumTrue: AI takes controls. False: Human has controls. Default: Assistance value
SimActionsLimitedBoolTrue: AI controls are limited. False: Sim has all the controls.
DisableCockpitInteractionBoolDisable cursor interaction in cockpit view

 

 

ChangeAssistanceItemAction

Change assistance item setting.

 

This action has the following parameters:

 

NameTypeDescription
SetChangeableEnum
SetValueEnum
AssistanceItemIDEnumEnum of assistance item IDs

 

 

FailureAction

Fail a system.

 

This action has the following parameters:

 

NameTypeDescription
SystemEnum
SystemIndexLONG
BehaviorEnum
HealthPercentFloat
TargetPlayerGUID

One of the specially defined GUIDs to refer to relative targets:

  1. Local User: {8B7615FA-BBBF-4baa-B959-5EF4F59BB575}
  2. All Players: {D09ADD85-4CA8-4be9-939C-4544BA259DA2}
  3. Trigger: {9A82F89B-F271-4285-AE90-1F733945D975}
  4. All Players Except Trigger: {D2764AC8-FBB3-4b9b-9721-3C3EA0CB402B}

 

 

PlaySoundAction

Play a sound

 

This action has the following parameters:

 

NameTypeDescription
NodeNameTextName of a node inside an scene hierarchy.
WorldPositionLLAPosition of object in 3 Space
OrientationPBHOrientation of object in 3 Space
WwiseEventNameTextName of a Wwise event

 

 

StopSoundAction

Stop a sound

 

This action has the following parameters:

 

NameTypeDescription
NodeNameTextName of a node inside an scene hierarchy.
FadeOutTimeFloatFade out time (in sec)

 

 

SoundEffectAction

Sets sound effects

 

This action has the following parameters:

 

NameTypeDescription
DopplerEnabledBoolDoppler enabled

 

 

RTPCAction

Send a RTPC

 

This action has the following parameters:

 

NameTypeDescription
NodeNameTextName of a node inside an scene hierarchy.
WwiseRTPCValueFloatValue of a Wwise RTPC

 

 

RumbleAction

Controller rumble effect

 

This action has the following parameters:

 

NameTypeDescription
IntensityEnumIntensity of rumble effect
DurationFloatDuration in seconds

 

 

RefillAction

Add or subtract percent of a substance

 

This action has the following parameters:

 

NameTypeDescription
PercentFuelFloat
PercentNitrousFloat
PercentAntiDetonationFloat
SystemIndexLONG
TargetPlayerGUID

One of the specially defined GUIDs to refer to relative targets:

  1. Local User: {8B7615FA-BBBF-4baa-B959-5EF4F59BB575}
  2. All Players: {D09ADD85-4CA8-4be9-939C-4544BA259DA2}
  3. Trigger: {9A82F89B-F271-4285-AE90-1F733945D975}
  4. All Players Except Trigger: {D2764AC8-FBB3-4b9b-9721-3C3EA0CB402B}

 

 

ShowLogbookAction

Show logbook

 

 

FadeToColorAction

 

 

This action has the following parameters:

 

NameTypeDescription
ColorRedULONGRed component between 0-255
ColorGreenULONGGreen component between 0-255
ColorBlueULONGBlue component between 0-255
FadeToColorBoolTRUE to fade to color. FALSE to fade from color
FadeDurationFloatDuration of the fade

 

 

FocusInstrumentAction

Change marker template action

 

This action has the following parameters:

 

NameTypeDescription
SetHighlightBoolIf true, Highlight the part is set. If false, stop Highlighting the part
HighlightColorFLOAT4Highlight color.
FocusDurationFloatFocus duration in seconds
SetCameraBoolIf true, camera is set. See the SetCamera Additional Information section for more information.
SetPulseBoolIf true, highlight pulses.
SetEyeIconBoolIf true, show an Eye Icon on focused part.
InstrumentPartIdTextPartId of a cockpit instrument
InstrumentHtmlIdTextId of a cockpit html instrument

 

 

LookAtInstrumentAction

Indicate user to look at an instrument

 

This action has the following parameters:

 

NameTypeDescription
SetHighlightBoolIf true, Highlight the part is set. If false, stop Highlighting the part
HighlightColorFLOAT4Highlight color.
FocusDurationFloatFocus duration in seconds
InstrumentPartIdTextPartId of a cockpit instrument
InstrumentHtmlIdTextId of a cockpit html instrument

 

 

InstructorDialogAction

Display and play dialog in the adventure window.

 

This action has the following parameters:

 

NameTypeDescription
TextTextText to use with the action.
SoundFileNameTextFilename of the sound file
DelaySecondsFloatNumber of seconds to delay
TargetPlayerGUID

One of the specially defined GUIDs to refer to relative targets:

  1. Local User: {8B7615FA-BBBF-4baa-B959-5EF4F59BB575}
  2. All Players: {D09ADD85-4CA8-4be9-939C-4544BA259DA2}
  3. Trigger: {9A82F89B-F271-4285-AE90-1F733945D975}
  4. All Players Except Trigger: {D2764AC8-FBB3-4b9b-9721-3C3EA0CB402B}
SkippableBoolIf true the animation is skippable
SpeakerTextSpeaker
PriorityEnumPriority for a dialog
CanBeSuspendedBoolA dialog can be suspended

 

 

RequestTeleportCameraAction

Teleport current camera to a position given by THE FIRST camera that validates ONE of the arguments

 

This action has the following parameters:

 

NameTypeDescription
CameraNameCFGTextName of the camera in the CFG file to extract position
TeleportCameraBoolIf false, the transition to the new camera is smooth

 

 

ForceMusicAction

Force Music Color

 

This action has the following parameters:

 

NameTypeDescription
MusicSelectionTextName of the music to play (as a string)
MusicSelectionTTText

 

 

StopMusicAction

Stop music action

 

This action has the following parameters:

 

NameTypeDescription
MusicSelectionTextName of the music to stop (as a string)
FadeOutTimeFloatFade out time (in sec).

 

 

PlayMusicAction

Action to play some music.

 

This action has the following parameters:

 

NameTypeDescription
MusicSelectionTextName of the music to play (as a string)
IsLoopingBoolWhether the music should loop or not.
FadeOutTimeFloatFade out time (in sec).

 

 

TimeAction

action to execute in time

 

 

SetCamera Additional Information

When using the FocusInstrumentAction method along with the SetCamera parameter, there a few things that will need to be taken into account before it will work correctly for all components. The steps are as follows:

 

  • The first step is to add a new [CAMERADEFINITION.N] in the cameras.cfg file and place the camera where you want it to be when you use the FocusInstrumentAction. If there is an existing camera that also fits the same role then that camera can be used instead.

 

  • Next, in the <behavior>.xml for the aircraft (or its cockpit counterpart), find the <Component> element which corresponds to the one that you will want to focus the camera on.

 

  • Inside of this <Component> element, you will then need to add a <CameraTitle> sub-element with the title of the camera you want to use, as defined previously in the cameras.cfg file.

 

  • The final XML should look something like this:

    <Component ID="EXT_18_NACELLE" Node="EXT_18_NACELLE">
    <PartID>EXT_18_NACELLE</PartID>
    <CameraTitle>EXT_18_NACELLE_CAMERA</CameraTitle>
    
    </Component>