{"name":"setTriggerTimeout","operator":null,"title":"setTriggerTimeout","type":"command","url":"https://community.bistudio.com/wiki/setTriggerTimeout","revid":337985,"updated":"2023-02-23T21:11:05Z","groups":["Triggers"],"status":"ok","replaced_by":[],"games":[{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma1","name":"Armed Assault","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"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.\n\nFor a normal trigger, *min*, *mid* and *max* are used to generate random duration according to [Gaussian Distribution](https://en.wikipedia.org/wiki/Normal_distribution) (ref: Technically, it is a rescaled [Bates distribution](https://en.wikipedia.org/wiki/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.). For a \"Seized\" type of trigger, the duration value is generated using side ruling power","syntaxes":[{"syntax":"trigger setTriggerTimeout [min, mid, max, interruptable]","since":null,"effect":null,"exec":null,"params":[{"name":"trigger","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"trigger: Object"},{"name":"min","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"min: Number"},{"name":"mid","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"mid: Number"},{"name":"max","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"max: Number"},{"name":"interruptable","type":"Boolean","optional":false,"default":null,"description":null,"types":["Boolean"],"since":null,"text":"interruptable: Boolean"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"trigger","types":["Object"]},"right":{"text":"[min, mid, max, interruptable]","types":["Array"]}}],"examples":[{"text":"```sqf\n_trigger setTriggerTimeout [5, 10, 7, false];\n```","code":["_trigger setTriggerTimeout [5, 10, 7, false];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["triggerTimeout","triggerTimeoutCurrent","createTrigger","setTriggerActivation","setTriggerArea","setTriggerStatements","setTriggerText","setTriggerType","triggerInterval","setTriggerInterval","enableSimulation","simulationEnabled"],"notes":[],"categories":["ArmA: Armed Assault: New Scripting Commands","ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Triggers","Introduced with Armed Assault version 1.00","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}