MSFS Mission Script - Flow states: Difference between revisions
From FSDeveloper Wiki
Jump to navigationJump to search
(→FlowStateAction: Add explanation for FromSpawn property) |
(→List of FlowEvents: Add flow events) |
||
| Line 97: | Line 97: | ||
|SET_CAMERA_COCKPIT | |SET_CAMERA_COCKPIT | ||
|Set the camera to the inside cockpit view. | |Set the camera to the inside cockpit view. | ||
|- | |||
|SHOW_NAVLOG | |||
| | |||
|- | |- | ||
|SHOW_MISSION_STARTUP | |SHOW_MISSION_STARTUP | ||
| Line 109: | Line 112: | ||
|START_REPLAY | |START_REPLAY | ||
|Used to start replay for plane movement in the intro's of landing challenges. | |Used to start replay for plane movement in the intro's of landing challenges. | ||
|- | |||
|SHOW_HUD | |||
| | |||
|- | |||
|HIDE_HUD | |||
| | |||
|- | |- | ||
|END_BRIEFING | |END_BRIEFING | ||
|End the briefing. Used to stop the briefing before the replay has ended. | |End the briefing. Used to stop the briefing before the replay has ended. | ||
|- | |- | ||
| | |STOP_WATCH_STARTED | ||
| | |||
|- | |||
|STOP_WATCH_RESETED | |||
| | |||
|- | |||
|ENTER_CURSOR_MODE | |||
| | |||
|- | |||
|EXIT_CURSOR_MODE | |||
| | | | ||
|- | |- | ||
| Line 128: | Line 146: | ||
| | | | ||
|} | |} | ||
You can also control the toolbar panels with flowevents: | |||
{| class="wikitable" | {| class="wikitable" | ||
! colspan="2" | Panels | ! colspan="2" | Panels | ||
| Line 179: | Line 201: | ||
|} | |} | ||
Usage example: <code>PANEL_VFR_MAP_SHOW</code> | Usage example: <code>PANEL_VFR_MAP_SHOW</code> | ||
== FlowStateAction == | == FlowStateAction == | ||
Revision as of 10:48, 4 January 2022
| This page is a work-in-progress. Generic message - Please note some detail may possibly be missing or incorrect. |
| Applicable |
|---|
| MSFS |
| MS Flight |
| LM P3D5 |
| LM P3D4 |
| LM P3D3 |
| LM P3D2 |
| LM P3D |
| FS World |
| FSXSE |
| FSXA |
| FSX |
| FS2004 |
| FS2002 |
| XP11 |
| XP10 |
| XP9 |
Flowstates are the different parts of a mission or freeflight such as intro, approach, and parking. Flow events are special actions which control ‘sim-level’ actions such as enabling the VFR map, pausing the simulation, and changing the camera.
You can also use flowstates to start animated (RTC) intros and and outros, like the ones in bushtrips, landing challenges, and freeflight.
See MSFS Mission Script for general information about creating a mission script.
Flow states
List of FlowStates
| FlowStateName |
|---|
| INTRO |
| OUTRO |
| FREEFLIGHT |
| BUSHTRIP |
| LANDINGCHALLENGE |
| REPLAY |
| PREFLIGHT_GATE |
| PREFLIGHT_PUSHBACK |
| PREFLIGHT_TAXI |
| PREFLIGHT_HOLDSHORT |
| FLIGHT_RUNWAY |
| FLIGHT_INITIAL_CLIMB |
| FLIGHT_CLIMB |
| FLIGHT_CRUISE |
| FLIGHT_DESCENT |
| LANDING_APPROACH |
| LANDING_FINAL |
| LANDING_TAXI |
| LANDING_GATE |
| LANDING_REST |
Flow events
List of FlowEvents
| ATC_MUTE | |
| ATC_STOP | |
| ATC_RESUME | |
| PAUSE_SIM | Pause the sim (actual pause, not live pause). |
| UNPAUSE_SIM | Unpause the sim. |
| SET_CAMERA_COCKPIT | Set the camera to the inside cockpit view. |
| SHOW_NAVLOG | |
| SHOW_MISSION_STARTUP | Show briefing at the beginning of the flight. |
| HIDE_MISSION_STARTUP | |
| LAUNCH_REPLAY | Used to start replay by the user. |
| START_REPLAY | Used to start replay for plane movement in the intro's of landing challenges. |
| SHOW_HUD | |
| HIDE_HUD | |
| END_BRIEFING | End the briefing. Used to stop the briefing before the replay has ended. |
| STOP_WATCH_STARTED | |
| STOP_WATCH_RESETED | |
| ENTER_CURSOR_MODE | |
| EXIT_CURSOR_MODE | |
| BUSHTRIP_LEG_COMPLETED | |
| ASK_CONTINUE_TO_FREE_FLIGHT | |
| AI_SET_LANDING_STATE | Force landing state. |
| UNACTIVATE_PUSHBACK |
You can also control the toolbar panels with flowevents:
| Panels | |
|---|---|
| Panelname_FORCE_DISABLED | Disable this panel. The user can't select it anymore. |
| Panelname_FORCE_ENABLED | Allow the user to select this panel. |
| Panelname_SHOW | Open the panel. |
| Panelname_HIDE | Hide the panel. |
| Panel names | |
| PANEL_CAMERA | |
| PANEL_ATC | |
| PANEL_CONTROLS | |
| PANEL_CHECKLIST | |
| PANEL_FUEL_PAYLOAD | |
| PANEL_GAME_NAVLOG | |
| PANEL_VFR_MAP | |
| PANEL_TELEPORT | |
| PANEL_REPLAY | |
| PANEL_COPILOT | |
| PANEL_OBJECTIVES | |
Usage example: PANEL_VFR_MAP_SHOW
FlowStateAction
FlowStateAction
FlowState action.
| FirstState | If true, the state is the first state in the gameflight's flow. |
|---|---|
| FromSpawn | True if the state starts when the plane is spawned (during loading). |
| StayInStateAfter EndTeleportActions | Stay in the current state after end of teleport. |
| FlowStateName | Name of the flowstate. |
| ATCAircraft StateName | Probably refers to the AcState in the [ATC_Aircraft.0] section of the flight definition file (.FLT). |
| TrafficAircraft StateName | Probably refers to the AI state. Use: STATE_AIStateName (e.g STATE_ENROUTE_AS_FILED). |
| AvailableIn TimeLine | |
| IsFirstStateIn Timeline | |
| NextState | Link to the next FlowStateAction. |
| PauseOnStart | |
| AutoStateSwitch Enabled |
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).