setTriggerInterval: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +" to " ")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=")
Line 14: Line 14:
{{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.}}
{{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.}}


| trigger [[setTriggerInterval]] interval
|s1=  trigger [[setTriggerInterval]] interval


|p1= trigger: [[Object]] - Trigger object
|p1= trigger: [[Object]] - Trigger object

Revision as of 23:26, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
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