setTriggerInterval: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}}")
m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}")
 
(42 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.98


|1.98|Game version=
|arg= global
|eff= local


|arg= global|Multiplayer Arguments=
|gr1= Triggers
|eff= local |Multiplayer Effects=
____________________________________________________________________________________________


| Sets the interval in seconds for trigger condition check.<br><br>
|descr= 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=
{{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 |SYNTAX=
|s1= 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=
|r1= [[Nothing]]
____________________________________________________________________________________________
 
|x1= <code>_trigger [[setTriggerInterval]] 5;</code> |EXAMPLE1=
____________________________________________________________________________________________
|mp= Interval changes are local. |=


| [[triggerInterval]], [[triggerActivation]], [[triggerActivated]], [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerTimeout]], [[setTriggerType]], [[triggerAttachVehicle]], [[triggerAttachObject]], [[enableSimulation]], [[simulationEnabled]]  |SEEALSO=
|x1= <sqf>_trigger setTriggerInterval 5;</sqf>
|mp= Interval changes are local.


|seealso= [[triggerInterval]] [[triggerActivation]] [[triggerActivated]] [[createTrigger]] [[setTriggerActivation]] [[setTriggerArea]] [[setTriggerStatements]] [[setTriggerText]] [[setTriggerTimeout]] [[setTriggerType]] [[triggerAttachVehicle]] [[triggerAttachObject]] [[enableSimulation]] [[simulationEnabled]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETTRIGGERINTERVAL]]
[[Category:Command_Group:_Triggers|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 18:11, 15 March 2024

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