setTriggerTimeout: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>")
Line 35: Line 35:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>_trigger setTriggerTimeout [5, 10, 7, [[false]]<nowiki>]</nowiki>;</code>
|x1= <code>_trigger setTriggerTimeout [5, 10, 7, false<nowiki>]</nowiki>;</code>


|seealso= [[triggerTimeout]] [[triggerTimeoutCurrent]] [[createTrigger]] [[setTriggerActivation]] [[setTriggerArea]] [[setTriggerStatements]] [[setTriggerText]] [[setTriggerType]] [[triggerInterval]] [[setTriggerInterval]] [[enableSimulation]] [[simulationEnabled]]
|seealso= [[triggerTimeout]] [[triggerTimeoutCurrent]] [[createTrigger]] [[setTriggerActivation]] [[setTriggerArea]] [[setTriggerStatements]] [[setTriggerText]] [[setTriggerType]] [[triggerInterval]] [[setTriggerInterval]] [[enableSimulation]] [[simulationEnabled]]
}}
}}

Revision as of 11:17, 12 May 2022

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