getSelectionBones: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Feature|Important|" to "{{Feature|important|")
m (Text replacement - "↵|version1= 2.18↵↵|branch= dev↵" to " |version1= 2.18 ")
 
(4 intermediate revisions by 3 users not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 2.16
|version1= 2.18


|branch= dev
|gr1= Object Manipulation


|gr1= Object Manipulation
|descr= Returns an array of bone names to which the specified selection is attached.
{{Feature|important|This command is relatively slow because it searches in all vertices of every bone.}}


|descr= Returns an array of bone names that are attached to the specified selection.
{{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 23:
* {{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]] - Array of bone names
|r1= [[Array]] of [[String]]s - array of bone names


|seealso= [[selectionPosition]] [[selectionNames]] [[getBoneNames]]
|seealso= [[selectionPosition]] [[selectionNames]] [[getBoneNames]]
}}
}}

Latest revision as of 16:09, 8 October 2024

Hover & click on the images for description

Description

Description:
Returns an array of bone names to which the specified selection is attached.
This command is relatively slow because it searches in all vertices of every bone.
Groups:
Object Manipulation

Syntax

Syntax:
object getSelectionBones [selectionName, LOD]
Parameters:
object: Object
selectionName: String
LOD: String or Number - can be one of:
  • "Memory"
  • "Geometry"
  • "FireGeometry"
  • "LandContact"
  • "HitPoints"
  • "ViewGeometry"
When Number is used, command searches for a LOD with the same LOD resolution
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