Counter Trigger: Difference between revisions
From FSDeveloper Wiki
Jump to navigationJump to search
(Created page for counter trigger) |
(Added explenation, possible uses, and alternatives) |
||
| Line 12: | Line 12: | ||
| short-descr = Fires when a counter reaches a specified target. | | short-descr = Fires when a counter reaches a specified target. | ||
}} | }} | ||
Has a counter that can be changed by a CountAction. It fires when a specific count has been reached. | |||
The Count Action adds the specified value to an associated Counter trigger. When the Counter | |||
trigger’s StopCount value is reached, the trigger will fire and initiate the associated actions. You can count down instead of up, but there isn’t really any reason to do so. You can also associate more than one Count action with a single Counter trigger. | |||
== Possible uses == | |||
* Count the number of targets the player has hit. | |||
* Limiting how many times the player can exceed the speed. | |||
== Alternatives == | |||
* You can use [[MSFS Mission Script - Calculator|Calculators]] for more complex logic. | |||
* You can set [[Property Trigger|property triggers]] to fire for instance when the speed has been exceeded for a total of 20 seconds. | |||
Revision as of 10:50, 2 October 2021
| This page is a work-in-progress. Generic message - Please note some detail may possibly be missing or incorrect. |
CounterTrigger
Fires when a counter reaches a specified target.
Has a counter that can be changed by a CountAction. It fires when a specific count has been reached. The Count Action adds the specified value to an associated Counter trigger. When the Counter trigger’s StopCount value is reached, the trigger will fire and initiate the associated actions. You can count down instead of up, but there isn’t really any reason to do so. You can also associate more than one Count action with a single Counter trigger.
Possible uses
- Count the number of targets the player has hit.
- Limiting how many times the player can exceed the speed.
Alternatives
- You can use Calculators for more complex logic.
- You can set property triggers to fire for instance when the speed has been exceeded for a total of 20 seconds.