setTriggerInterval: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.98 | |1.98 | ||
|arg= global | |arg= global | ||
|eff= local | |eff= local | ||
|gr1= Triggers | |gr1= Triggers | ||
| 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.}} | {{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.}} | ||
| trigger [[setTriggerInterval]] interval | | trigger [[setTriggerInterval]] interval | ||
|p1= trigger: [[Object]] - Trigger object | |p1= trigger: [[Object]] - Trigger object | ||
|p2= interval: [[Number]] - Interval in seconds with which trigger condition is checked | |p2= interval: [[Number]] - Interval in seconds with which trigger condition is checked | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>_trigger [[setTriggerInterval]] 5;</code> | |x1= <code>_trigger [[setTriggerInterval]] 5;</code> | ||
|mp= Interval changes are local. | |mp= Interval changes are local. | ||
| [[triggerInterval]], [[triggerActivation]], [[triggerActivated]], [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[setTriggerType]], [[triggerAttachVehicle]], [[triggerAttachObject]], [[enableSimulation]], [[simulationEnabled]] | | [[triggerInterval]], [[triggerActivation]], [[triggerActivated]], [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[setTriggerType]], [[triggerAttachVehicle]], [[triggerAttachObject]], [[enableSimulation]], [[simulationEnabled]] | ||
}} | }} |
Revision as of 11:11, 18 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