Category: Objects
/ Display
Since engine version: 9.0 OC
GetBoneNames
Description
Returns the bone names for the the calling object. May also be called from definition context to return the default mesh's bones of this definition.
Syntax
array GetBoneNames();
Example
func HasHead(def definition) { for (var bone in definition->GetBoneNames()) { if (WildcardMatch(bone, "*Head*") || WildcardMatch(bone, "*head*")) { return true; } } return false; }
Returns true if the definition has any bone named "Head"
See also: AttachMesh