{"name":"getSelectionBones","title":"getSelectionBones","type":"command","url":"https://community.bistudio.com/wiki/getSelectionBones","revid":369782,"updated":"2024-10-08T15:09:02Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"2.18"},"since":"arma3 2.18","arma3_since":"2.18","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]","params":[{"name":"object","type":"Object","type_expr":"Object"},{"name":"selectionName","type":"String","type_expr":"String"},{"name":"LOD","type":"String or Number","description":"can be one of:\n\n- `\"Memory\"`\n- `\"Geometry\"`\n- `\"FireGeometry\"`\n- `\"LandContact\"`\n- `\"HitPoints\"`\n- `\"ViewGeometry\"`\n\nWhen Number is used, command searches for a LOD with the same LOD resolution","type_expr":"String | Number"}],"returns":{"type":"Array of Strings","type_expr":"Array<String>","description":"array of bone names"},"form":"binary","left":{"text":"object"},"right":{"text":"[selectionName, LOD]"}}],"see_also":["selectionPosition","selectionNames","getBoneNames"]}