Timer Trigger

From FSDeveloper Wiki
Revision as of 12:22, 25 May 2024 by BASys (talk | contribs) (Replaced Applicable-FSVersion for MSFS with MSFS2020, added MSFS2024)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


A timer trigger is a very useful trigger that waits a specified number of seconds before executing actions. It is often used to start the first actions in the mission.

TimerTrigger

When active, counts down a specified number of seconds before executing actions.


CurrentTime The time the timer is at, will change when the TimerTrigger is active.
StartTime Time that the Timer starts at when a ResetTimerAction is executed.
StopTime Time at which the trigger fires.

Notes: only one onscreen timer is possible (so if a new one is opened, it will replace any existing one).

Possible uses

  • Use a TimerTrigger with a StopTime of 0 to trigger the first actions of the mission.
  • Give the player some time to react.

Related

  • You can use a TimerAdjustAction to change the CurrentTime by the amount specified in DeltaTime (positive or negative).
  • You can use a ResetTimerAction to reset the CurrentTime to the StartTime.
  • You can also keep time with a calculator.


See MSFS Mission Script - Triggers for an overview of triggers and more info about triggers in general.


Pages relevant to mission creation for MSFS.

Mission structure

Flightplan
Weather definitions
Flight file
Mission script
Triggers
AirportLandingTrigger & AreaLandingTrigger · CounterTrigger · PropertyTrigger · ProximityTrigger · TimerTrigger
Actions
ObjectActivationAction · DialogAction · AdjustPayloadAction · ChangeAssistanceItemAction · FadeToColorAction · RandomAction · RequestTeleportAction · CountAction · ResetTimerAction · TimerAdjustAction · GoalResolutionAction & SubGoalResolutionAction · GrantRewardAction · PointOfInterestActivationAction · ActivateWaypointsAction · AITakeControlsAction · SendMessageToAIAction
Mission objects
Mission definition · Goal · LivingWorldExclusion · Camera
Calculator
Flow states
Events
Areas
Rectangle Area · Cylinder Area · Polygon Area · Corridor Area · InGameMarker
Library objects
Sim objects
RTC

Mission tools

MSFS Script Editor · BushTripInjector · BushMissionGen · MSFSLocalizer · SPB2XML · Little Navmap

Other

Example mission files
Porting FSX Missions to MSFS
Localisation
Click the links to access the topic pages (Default - Opens in same window).