setTriggerInterval: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
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|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.98|Game version=
|1.98


|arg= global|Multiplayer Arguments=
|arg= global
|eff= local |Multiplayer Effects=
|eff= local


|gr1= Triggers |GROUP1=
|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.}}|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.}}


| trigger [[setTriggerInterval]] interval |SYNTAX=
| trigger [[setTriggerInterval]] interval


|p1= trigger: [[Object]] - Trigger object |PARAMETER1=
|p1= trigger: [[Object]] - Trigger object
|p2= interval: [[Number]] - Interval in seconds with which trigger condition is checked|PARAMETER2=
|p2= interval: [[Number]] - Interval in seconds with which trigger condition is checked


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>_trigger [[setTriggerInterval]] 5;</code> |EXAMPLE1=
|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]] |SEEALSO=
| [[triggerInterval]], [[triggerActivation]], [[triggerActivated]], [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[setTriggerType]], [[triggerAttachVehicle]], [[triggerAttachObject]], [[enableSimulation]], [[simulationEnabled]]


}}
}}

Revision as of 12:11, 18 January 2021

Hover & click on the images for description

Description

Description:
Sets the interval in seconds for trigger condition check.

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 attached to. This command cannot change the interval of the attached trigger. The trigger can also be "frozen" with enableSimulation command.
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

Notes