{"name":"taskDestination","operator":null,"title":"taskDestination","type":"command","url":"https://community.bistudio.com/wiki/taskDestination","revid":349537,"updated":"2023-11-08T17:18:22Z","groups":["Briefing"],"status":"ok","replaced_by":[],"games":[{"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":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the position of the task (as specified by destination parameter in config).","syntaxes":[{"syntax":"taskDestination task","since":null,"effect":null,"exec":null,"params":[{"name":"task","type":"Task","optional":false,"default":null,"description":null,"types":["Task"],"since":null,"text":"task: Task"}],"returns":{"type":"Array (A3 1.28 Returns Nothing if identity is taskNull)","types":["Array","Nothing","taskNull"],"description":null,"text":"Array (A3 1.28 Returns Nothing if identity is taskNull)"},"form":"unary","operator":null,"left":null,"right":{"text":"task","types":["Task"]}}],"examples":[{"text":"```sqf\nif (!isNull currentTask player) then { hint str taskDestination currentTask player };\n```","code":["if (!isNull currentTask player) then { hint str taskDestination currentTask player };"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["cancelSimpleTaskDestination","setSimpleTaskDestination"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Briefing","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}