setTriggerTimeout: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2")
m (Text replacement - "Link\|https:\/\/en\.wikipedia\.org\/([^w][^i])" to "Link|https://en.wikipedia.org/wiki/$1")
 
(46 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma |Game name=
|game1= arma1
|version1= 1.00


|1.00|Game version=
|game2= arma2
|arg= global|Multiplayer Arguments=
|version2= 1.00
|eff= local |Multiplayer Effects=
____________________________________________________________________________________________


| Defines the time between condition satisfaction and trigger activation (randomly from min to max, with an average value mid). If the last argument is true, the condition must be fullfilled all the time. <br><br>
|game3= arma2oa
For a normal trigger, ''min'', ''mid'' and ''max'' are used to generate random duration according to [https://en.wikipedia.org/wiki/Normal_distribution Gaussian Distribution]<ref>Technically, it is a rescaled [https://en.wikipedia.org/wiki/Bates_distribution Bates distribution] with n = 4. The distribution is split in two at its midpoint and scaled linearly such that its maximum lies at the specified midpoint.</ref>. For a "Seized" type of trigger, the duration value is generated using side ruling power |DESCRIPTION=
|version3= 1.50
____________________________________________________________________________________________


| trigger '''setTriggerTimeout''' [min, mid, max, interruptable] |SYNTAX=
|game4= tkoh
|version4= 1.00


|p1= trigger: [[Object]] |PARAMETER1=
|game5= arma3
|p2= [min, mid, max, interruptable]: [[Array]] |PARAMETER2=
|version5= 0.50
|p3= min: [[Number]] |PARAMETER3=
|p4= mid: [[Number]] |PARAMETER4=
|p5= max: [[Number]] |PARAMETER5=
|p6= interruptable: [[Boolean]] |PARAMETER6=


| [[Nothing]] |RETURNVALUE=
|arg= global
____________________________________________________________________________________________
|eff= local
 
|x1= <code>_trigger [[setTriggerTimeout]] [5, 10, 7, [[false]]<nowiki>]</nowiki>;</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[triggerTimeout]], [[triggerTimeoutCurrent]], [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerType]], [[triggerInterval]], [[setTriggerInterval]], [[enableSimulation]], [[simulationEnabled]] |SEEALSO=
|gr1= Triggers


}}
|descr= Defines the time between condition satisfaction and trigger activation (randomly from min to max, with an average value mid). If the last argument is true, the condition must be fullfilled all the time. <br><br>
For a normal trigger, ''min'', ''mid'' and ''max'' are used to generate random duration according to {{Link|https://en.wikipedia.org/wiki/Normal_distribution|Gaussian Distribution}}<ref>Technically, it is a rescaled {{Link|https://en.wikipedia.org/wiki/Bates_distribution|Bates distribution}} with n = 4. The distribution is split in two at its midpoint and scaled linearly such that its maximum lies at the specified midpoint.</ref>. For a "Seized" type of trigger, the duration value is generated using side ruling power
 
|s1= trigger [[setTriggerTimeout]] [min, mid, max, interruptable]
 
|p1= trigger: [[Object]]
 
|p2= min: [[Number]]
 
|p3= mid: [[Number]]
 
|p4= max: [[Number]]
 
|p5= interruptable: [[Boolean]]


<h3 style="display:none">Notes</h3>
|r1= [[Nothing]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>_trigger setTriggerTimeout [5, 10, 7, false];</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[triggerTimeout]] [[triggerTimeoutCurrent]] [[createTrigger]] [[setTriggerActivation]] [[setTriggerArea]] [[setTriggerStatements]] [[setTriggerText]] [[setTriggerType]] [[triggerInterval]] [[setTriggerInterval]] [[enableSimulation]] [[simulationEnabled]]
[[Category:Scripting Commands|SETTRIGGERTIMEOUT]]
}}
[[Category:Scripting Commands OFP Elite |SETTRIGGERTIMEOUT]]
[[Category:Scripting Commands ArmA|SETTRIGGERTIMEOUT]]
[[Category:Command_Group:_Activators|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 22:11, 23 February 2023

Hover & click on the images for description

Description

Description:
Defines the time between condition satisfaction and trigger activation (randomly from min to max, with an average value mid). If the last argument is true, the condition must be fullfilled all the time.

For a normal trigger, min, mid and max are used to generate random duration according to Gaussian Distribution[1]. For a "Seized" type of trigger, the duration value is generated using side ruling power
Groups:
Triggers

Syntax

Syntax:
trigger setTriggerTimeout [min, mid, max, interruptable]
Parameters:
trigger: Object
min: Number
mid: Number
max: Number
interruptable: Boolean
Return Value:
Nothing

Examples

Example 1:
_trigger setTriggerTimeout [5, 10, 7, false];

Additional Information

See also:
triggerTimeout triggerTimeoutCurrent createTrigger setTriggerActivation setTriggerArea setTriggerStatements setTriggerText setTriggerType triggerInterval setTriggerInterval 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
  1. Technically, it is a rescaled Bates distribution with n = 4. The distribution is split in two at its midpoint and scaled linearly such that its maximum lies at the specified midpoint.