setTriggerInterval: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([a-zA-Z0-9_]+) +\[\[([a-zA-Z0-9_]+)\]\] +([a-zA-Z0-9_]+);?<\/code>" to "<sqf>$1 $2 $3;</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
|descr= Sets the interval in seconds for trigger condition check.<br><br> | |descr= Sets the interval in seconds for trigger condition check.<br><br> | ||
{{Feature | | {{Feature|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.}} | ||
|s1= trigger [[setTriggerInterval]] interval | |s1= trigger [[setTriggerInterval]] interval | ||
|p1= trigger: [[Object]] - | |p1= trigger: [[Object]] - trigger object | ||
|p2= interval: [[Number]] - | |p2= interval: [[Number]] - interval in seconds with which trigger condition is checked | ||
|r1= [[Nothing]] | |r1= [[Nothing]] |
Latest revision as of 18:11, 15 March 2024
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:
- triggerInterval triggerActivation triggerActivated createTrigger setTriggerActivation setTriggerArea setTriggerStatements setTriggerText setTriggerTimeout setTriggerType triggerAttachVehicle triggerAttachObject enableSimulation simulationEnabled
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