Entity.GetBoneName

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:GetBoneName( Integer boneindex )
Description:
Returns the name of a given bone entity
Returns: String
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetBoneName]Entity.GetBoneName [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionThis will return the name of each bone of the player.
Used onNewerShared.png
Code
concommand.Add("getbonenames", function(ply)
	for i=0, ply:GetBoneCount() - 1 do
		MsgN(ply:GetBoneName(i));
	end
end);
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox