{"name":"triggerTimeoutCurrent","operator":null,"title":"triggerTimeoutCurrent","type":"command","url":"https://community.bistudio.com/wiki/triggerTimeoutCurrent","revid":376123,"updated":"2025-09-01T08:15:52Z","groups":["Triggers"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.08"}],"since":{"game":"arma3","name":"Arma 3","version":"1.08"},"arma3_since":"1.08","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns current timeout of the given trigger or -1 if countdown is not in progress.\n\n> [!IMPORTANT]\n> The trigger could be local or remote but the result returned by this command will be for the current trigger timeout local to the client that executed the command.\n> See createTrigger for more info.","syntaxes":[{"syntax":"triggerTimeoutCurrent trigger","since":null,"effect":null,"exec":null,"params":[{"name":"trigger","type":"Object","optional":false,"default":null,"description":"trigger object","types":["Object"],"since":null,"text":"trigger: Object - trigger object"}],"returns":{"type":"Number","types":["Number"],"description":"time remaining before trigger activation.","text":"Number - time remaining before trigger activation."},"form":"unary","operator":null,"left":null,"right":{"text":"trigger","types":["Object"]}}],"examples":[{"text":"```sqf\n_remaining = triggerTimeoutCurrent _trigger;\n```","code":["_remaining = triggerTimeoutCurrent _trigger;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["triggerTimeout","setTriggerTimeout","waypointTimeoutCurrent"],"notes":[{"user":"Killzone_Kid","date":"2013-11-26T12:16:00Z","text":"Triggers have their own schedule. If you create a trigger with timeout and try to read triggerTimeoutCurrent immediately it will return -1.\nThis is because the countdown will not start until the next scheduled trigger check is due, and this could take up to 0.5 seconds."}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Triggers","Introduced with Arma 3 version 1.08","Scripting Commands"]}