Entity.GetFlexName

From GMod Wiki

Revision as of 16:03, 10 January 2010 by Deco Da Man (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:GetFlexName( Integer flex )
Description:
Returns the name of a given flex
Returns: String
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetFlexName]Entity.GetFlexName [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints the name of every flex from the entity ent to the console.
Used onNewerShared.png
Code
local FlexNum = ent:GetFlexNum() - 1
 
for i=0, FlexNum do
	print(ent:GetFlexName(i))
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox