{"name":"getSelectionBones","operator":null,"title":"getSelectionBones","type":"command","url":"https://community.bistudio.com/wiki/getSelectionBones","revid":369782,"updated":"2024-10-08T15:09:02Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.18"}],"since":{"game":"arma3","name":"Arma 3","version":"2.18"},"arma3_since":"2.18","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns an array of bone names to which the specified selection is attached.\n\n> [!IMPORTANT]\n> This command is relatively slow because it searches in all vertices of every bone.","syntaxes":[{"syntax":"object getSelectionBones [selectionName, LOD]","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"object: Object"},{"name":"selectionName","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"selectionName: String"},{"name":"LOD","type":"String or Number","optional":false,"default":null,"description":"can be one of:\n- `\"Memory\"`\n- `\"Geometry\"`\n- `\"FireGeometry\"`\n- `\"LandContact\"`\n- `\"HitPoints\"`\n- `\"ViewGeometry\"`\nWhen Number is used, command searches for a LOD with the same LOD resolution","types":["String","Number"],"since":null,"text":"LOD: String or Number - can be one of:\n- `\"Memory\"`\n- `\"Geometry\"`\n- `\"FireGeometry\"`\n- `\"LandContact\"`\n- `\"HitPoints\"`\n- `\"ViewGeometry\"`\nWhen Number is used, command searches for a LOD with the same LOD resolution"}],"returns":{"type":"Array of Strings","types":["Array","String"],"description":"array of bone names","text":"Array of Strings - array of bone names"},"form":"binary","operator":null,"left":{"text":"object","types":["Object"]},"right":{"text":"[selectionName, LOD]","types":["Array"]}}],"examples":[],"multiplayer":null,"problems":null,"aliases":[],"see_also":["selectionPosition","selectionNames","getBoneNames"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 2.18","Scripting Commands"]}