Random Action
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 |
Randomly executes one action from a list. First, the action has a probability that any action is executed at all. If it does execute, it randomly chooses one action that will execute.
RandomAction
Randomly execute action(s).
ProbabilityPercent | Propability that one of the actions will execute. 100% means a random action from the list will always execute. |
---|---|
Actions | You can reference an action multiple times to increase its probability. |
Possible uses
- Create different experiences (different dialog, random failures, random location to go to)
- Have something randomly occur in a timespan. Set the ProbabilityPercent to a low value and have a TimerTrigger trigger the RandomAction multiple times. The ProbabilityPercent and frequency of the TimerTrigger will determine the timespan.
Related
- A Menu Prompt Trigger can also be used to create branching paths in your mission.
See MSFS Mission Script - Actions for an overview of actions and more info about actions in general.
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).