{"name":"tvSelection","operator":null,"title":"tvSelection","type":"command","url":"https://community.bistudio.com/wiki/tvSelection","revid":378378,"updated":"2026-04-04T04:45:23Z","groups":["GUI Control - Tree View"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.02"}],"since":{"game":"arma3","name":"Arma 3","version":"2.02"},"arma3_since":"2.02","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns array of paths to selected items.","syntaxes":[{"syntax":"tvSelection control","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"control: Control"}],"returns":{"type":"Tree View Path","types":["Tree View Path"],"description":null,"text":"Tree View Path"},"form":"unary","operator":null,"left":null,"right":{"text":"control","types":["Control"]}}],"examples":[{"text":"```sqf\nprivate _selection = tvSelection _ctrlTV;\n```","code":["private _selection = tvSelection _ctrlTV;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["tvSetSelected","tvIsSelected"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - Tree View","Introduced with Arma 3 version 2.02","Scripting Commands"]}