setTriggerTimeout: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "") |
Lou Montana (talk | contribs) m (Text replacement - "Link\|https:\/\/en\.wikipedia\.org\/([^w][^i])" to "Link|https://en.wikipedia.org/wiki/$1") |
||
(18 intermediate revisions by the same user not shown) | |||
Line 22: | Line 22: | ||
|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> | |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 {{ | 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= | |s1= trigger [[setTriggerTimeout]] [min, mid, max, interruptable] | ||
|p1= trigger: [[Object]] | |p1= trigger: [[Object]] | ||
| | |p2= min: [[Number]] | ||
| | |p3= mid: [[Number]] | ||
|seealso= [[triggerTimeout]] | |p4= max: [[Number]] | ||
|p5= interruptable: [[Boolean]] | |||
|r1= [[Nothing]] | |||
|x1= <sqf>_trigger setTriggerTimeout [5, 10, 7, false];</sqf> | |||
|seealso= [[triggerTimeout]] [[triggerTimeoutCurrent]] [[createTrigger]] [[setTriggerActivation]] [[setTriggerArea]] [[setTriggerStatements]] [[setTriggerText]] [[setTriggerType]] [[triggerInterval]] [[setTriggerInterval]] [[enableSimulation]] [[simulationEnabled]] | |||
}} | }} |
Latest revision as of 22:11, 23 February 2023
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:
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
- ↑ 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.
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Triggers
- Scripting Commands: Local Effect