getSelectionBones: Difference between revisions
Jump to navigation
Jump to search
m (2.16 -> 2.18) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 9: | Line 9: | ||
|descr= Returns an array of bone names that are attached to the specified selection. | |descr= Returns an array of bone names that are attached to the specified selection. | ||
{{Feature|important|This command is relatively slow | {{Feature|important|This command is relatively slow because it searches in all vertices of every bone.}} | ||
|s1= object [[getSelectionBones]] [selectionName, LOD] | |s1= object [[getSelectionBones]] [selectionName, LOD] | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|p2= selectionName: [[String]] | |p2= selectionName: [[String]] | ||
|p3= LOD: [[String]] or [[Number]] - can be one of: | |p3= LOD: [[String]] or [[Number]] - can be one of: | ||
{{Columns|2| | |||
* {{hl|"Memory"}} | * {{hl|"Memory"}} | ||
* {{hl|"Geometry"}} | * {{hl|"Geometry"}} | ||
Line 21: | Line 25: | ||
* {{hl|"HitPoints"}} | * {{hl|"HitPoints"}} | ||
* {{hl|"ViewGeometry"}} | * {{hl|"ViewGeometry"}} | ||
}} | |||
When [[Number]] is used, command searches for a LOD with the same [[LOD resolutions|LOD resolution]] | When [[Number]] is used, command searches for a LOD with the same [[LOD resolutions|LOD resolution]] | ||
|r1= [[Array]] of [[Strings]] - | |r1= [[Array]] of [[Strings]] - array of bone names | ||
|seealso= [[selectionPosition]] [[selectionNames]] [[getBoneNames]] | |seealso= [[selectionPosition]] [[selectionNames]] [[getBoneNames]] | ||
}} | }} |
Revision as of 21:50, 16 February 2024
Description
- Description:
- Returns an array of bone names that are attached to the specified selection.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- object getSelectionBones [selectionName, LOD]
- Parameters:
- object: Object
- selectionName: String
- LOD: String or Number - can be one of:
When Number is used, command searches for a LOD with the same LOD resolution
- "Memory"
- "Geometry"
- "FireGeometry"
- "LandContact"
- "HitPoints"
- "ViewGeometry"
- Return Value:
- Array of Strings - array of bone names
Examples
- Examples:
- Example needed
Additional Information
- See also:
- selectionPosition selectionNames getBoneNames
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note