Entity.GetBoneName

From GMod Wiki

Revision as of 15:09, 27 September 2010 by DarKSunrise (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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