setTriggerInterval: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 10: | Line 9: | ||
|gr1= Triggers |GROUP1= | |gr1= Triggers |GROUP1= | ||
| Sets the interval in seconds for trigger condition check.<br><br> | | Sets the interval in seconds for trigger condition check.<br><br> | ||
{{Informative | Triggers are configured to check condition approx. every 0.5 second by default. This command allows either to slow down or to speed up default check interval per trigger. Setting interval to 0 will make the trigger check its condition every frame. However, when trigger is attached to some object, the trigger will inherit the simulation frequency of the object it is [[attachedTo | attached to]]. This command cannot change the interval of the attached trigger. The trigger can also be "frozen" with [[enableSimulation]] command.}}|DESCRIPTION= | {{Informative | Triggers are configured to check condition approx. every 0.5 second by default. This command allows either to slow down or to speed up default check interval per trigger. Setting interval to 0 will make the trigger check its condition every frame. However, when trigger is attached to some object, the trigger will inherit the simulation frequency of the object it is [[attachedTo | attached to]]. This command cannot change the interval of the attached trigger. The trigger can also be "frozen" with [[enableSimulation]] command.}}|DESCRIPTION= | ||
| trigger [[setTriggerInterval]] interval |SYNTAX= | | trigger [[setTriggerInterval]] interval |SYNTAX= | ||
Line 23: | Line 20: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>_trigger [[setTriggerInterval]] 5;</code> |EXAMPLE1= | |x1= <code>_trigger [[setTriggerInterval]] 5;</code> |EXAMPLE1= | ||
|mp= Interval changes are local. |= | |mp= Interval changes are local. |= | ||
Revision as of 02:30, 17 January 2021
Description
- Description:
- Sets the interval in seconds for trigger condition check.
- Multiplayer:
- Interval changes are local.
- Groups:
- Triggers
Syntax
- Syntax:
- trigger setTriggerInterval interval
- Parameters:
- trigger: Object - Trigger object
- interval: Number - Interval in seconds with which trigger condition is checked
- Return Value:
- Nothing
Examples
- Example 1:
_trigger setTriggerInterval 5;
Additional Information
- See also:
- triggerIntervaltriggerActivationtriggerActivatedcreateTriggersetTriggerActivationsetTriggerAreasetTriggerStatementssetTriggerTextsetTriggerTimeoutsetTriggerTypetriggerAttachVehicletriggerAttachObjectenableSimulationsimulationEnabled
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note