setTriggerTimeout: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Corrected distribution)
m (template:command argument fix)
Line 10: Line 10:


| 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>
| 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 [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
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=
____________________________________________________________________________________________
____________________________________________________________________________________________


| trigger '''setTriggerTimeout''' [min, mid, max, interruptable] |= Syntax
| trigger '''setTriggerTimeout''' [min, mid, max, interruptable] |SYNTAX=


|p1= trigger: [[Object]] |= Parameter 1
|p1= trigger: [[Object]] |PARAMETER1=
|p2= [min, mid, max, interruptable]: [[Array]] |= Parameter 2
|p2= [min, mid, max, interruptable]: [[Array]] |PARAMETER2=
|p3= min: [[Number]] |= Parameter 3
|p3= min: [[Number]] |PARAMETER3=
|p4= mid: [[Number]] |= Parameter 4
|p4= mid: [[Number]] |PARAMETER4=
|p5= max: [[Number]] |= Parameter 5
|p5= max: [[Number]] |PARAMETER5=
|p6= interruptable: [[Boolean]] |= Parameter 6
|p6= interruptable: [[Boolean]] |PARAMETER6=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_trigger [[setTriggerTimeout]] [5, 10, 7, [[false]]<nowiki>]</nowiki>;</code> |= Example 1
|x1= <code>_trigger [[setTriggerTimeout]] [5, 10, 7, [[false]]<nowiki>]</nowiki>;</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[triggerTimeout]], [[triggerTimeoutCurrent]], [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerType]] |= See also
| [[triggerTimeout]], [[triggerTimeoutCurrent]], [[createTrigger]], [[setTriggerActivation]], [[setTriggerArea]], [[setTriggerStatements]], [[setTriggerText]], [[setTriggerType]] |SEEALSO=


}}
}}

Revision as of 15:48, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
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:
Uncategorised

Syntax

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

Examples

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

Additional Information

See also:
triggerTimeouttriggerTimeoutCurrentcreateTriggersetTriggerActivationsetTriggerAreasetTriggerStatementssetTriggerTextsetTriggerType

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

Bottom Section

  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.