setTriggerTimeout: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (description) |
Bovine3dom (talk | contribs) m (Added link to correct distribution for people who would be very confused at the concept of a minimum and maximum for a normal distribution.) |
||
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]. 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/Irwin–Hall_distribution Irwin-Hall Distribution] with n = 4.</ref. For a "Seized" type of trigger, the duration value is generated using side ruling power |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 13:05, 8 March 2019
Description
- Description:
- trigger setTriggerTimeout [min, mid, max, interruptable]
- Groups:
- Uncategorised
Syntax
- Syntax:
- Nothing
- Parameters:
- trigger: Object
- [min, mid, max, interruptable]: Array
- min: Number
- mid: Number
- max: Number
- interruptable: Boolean
- Return Value:
- triggerTimeout, triggerTimeoutCurrent, createTrigger, setTriggerActivation, setTriggerArea, setTriggerStatements, setTriggerText, setTriggerType
Examples
- Example 1:
_trigger setTriggerTimeout [5, 10, 7, false];
Additional Information
- See also:
- See also needed
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
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP Elite
- Scripting Commands ArmA
- Command Group: Activators
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters