SIMCONNECT ACTIONS
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:
| Name | Type | Description |
|---|---|---|
SoundFileName |
Text | Filename of the sound file. |
DialogAction
Will display and play a dialog in the adventure window.
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
Text |
Text | |
SoundFileName |
Text | Filename of the sound file |
PackageName |
Text | Filename of the package |
DelaySeconds |
Float | Number of seconds to delay |
TargetPlayer |
GUID |
One of the specially defined GUIDs to refer to relative targets:
|
Skippable |
Bool | If true the animation is skippable |
Speaker |
Text | Speaker |
Priority |
Enum | Priority for a dialog |
CanBeSuspended |
Bool | A dialog can be suspended |
AITakeControlsAction
AI takes controls.
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
AIControl |
Enum | True: AI takes controls. False: Human has controls. Default: Assistance value |
SimActionsLimited |
Bool | True: AI controls are limited. False: Sim has all the controls. |
DisableCockpitInteraction |
Bool | Disable cursor interaction in cockpit view |
ChangeAssistanceItemAction
Change assistance item setting.
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
SetChangeable |
Enum | |
SetValue |
Enum | |
AssistanceItemID |
Enum | Enum of assistance item IDs |
FailureAction
Fail a system.
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
System |
Enum | |
SystemIndex |
LONG | |
Behavior |
Enum | |
HealthPercent |
Float | |
TargetPlayer |
GUID |
One of the specially defined GUIDs to refer to relative targets:
|
PlaySoundAction
Play a sound
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
NodeName |
Text | Name of a node inside an scene hierarchy. |
WorldPosition |
LLA | Position of object in 3 Space |
Orientation |
PBH | Orientation of object in 3 Space |
WwiseEventName |
Text | Name of a Wwise event |
StopSoundAction
Stop a sound
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
NodeName |
Text | Name of a node inside an scene hierarchy. |
FadeOutTime |
Float | Fade out time (in sec) |
SoundEffectAction
Sets sound effects
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
DopplerEnabled |
Bool | Doppler enabled |
RTPCAction
Send a RTPC
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
NodeName |
Text | Name of a node inside an scene hierarchy. |
WwiseRTPCValue |
Float | Value of a Wwise RTPC |
RumbleAction
Controller rumble effect
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
Intensity |
Enum | Intensity of rumble effect |
Duration |
Float | Duration in seconds |
RefillAction
Add or subtract percent of a substance
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
PercentFuel |
Float | |
PercentNitrous |
Float | |
PercentAntiDetonation |
Float | |
SystemIndex |
LONG | |
TargetPlayer |
GUID |
One of the specially defined GUIDs to refer to relative targets:
|
ShowLogbookAction
Show logbook
FadeToColorAction
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
ColorRed |
ULONG | Red component between 0-255 |
ColorGreen |
ULONG | Green component between 0-255 |
ColorBlue |
ULONG | Blue component between 0-255 |
FadeToColor |
Bool | TRUE to fade to color. FALSE to fade from color |
FadeDuration |
Float | Duration of the fade |
FocusInstrumentAction
Change marker template action
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
SetHighlight |
Bool | If true, Highlight the part is set. If false, stop Highlighting the part |
HighlightColor |
FLOAT4 | Highlight color. |
FocusDuration |
Float | Focus duration in seconds |
SetCamera |
Bool | If true, camera is set. See the SetCamera Additional Information page for more information. |
SetPulse |
Bool | If true, highlight pulses. |
SetEyeIcon |
Bool | If true, show an Eye Icon on focused part. |
InstrumentPartId |
Text | PartId of a cockpit instrument |
InstrumentHtmlId |
Text | Id of a cockpit html instrument |
LookAtInstrumentAction
Indicate user to look at an instrument
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
SetHighlight |
Bool | If true, Highlight the part is set. If false, stop Highlighting the part |
HighlightColor |
FLOAT4 | Highlight color. |
FocusDuration |
Float | Focus duration in seconds |
InstrumentPartId |
Text | PartId of a cockpit instrument |
InstrumentHtmlId |
Text | Id of a cockpit html instrument |
InstructorDialogAction
Display and play dialog in the adventure window.
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
Text |
Text | Text to use with the action. |
SoundFileName |
Text | Filename of the sound file |
DelaySeconds |
Float | Number of seconds to delay |
TargetPlayer |
GUID |
One of the specially defined GUIDs to refer to relative targets:
|
Skippable |
Bool | If true the animation is skippable |
Speaker |
Text | Speaker |
Priority |
Enum | Priority for a dialog |
CanBeSuspended |
Bool | A 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:
| Name | Type | Description |
|---|---|---|
CameraNameCFG |
Text | Name of the camera in the CFG file to extract position |
TeleportCamera |
Bool | If false, the transition to the new camera is smooth |
ForceMusicAction
Force Music Color
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
MusicSelection |
Text | Name of the music to play (as a string) |
MusicSelectionTT |
Text |
StopMusicAction
Stop music action
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
MusicSelection |
Text | Name of the music to stop (as a string) |
FadeOutTime |
Float | Fade out time (in sec). |
PlayMusicAction
Action to play some music.
This action has the following parameters:
| Name | Type | Description |
|---|---|---|
MusicSelection |
Text | Name of the music to play (as a string) |
IsLooping |
Bool | Whether the music should loop or not. |
FadeOutTime |
Float | Fade out time (in sec). |
TimeAction
action to execute in time
Related Topics