Entity.GetFlexNum

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:GetFlexNum( )
Description:
Returns the number of flexes this entity has
Returns: Integer
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetFlexNum]Entity.GetFlexNum [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-1 do
	print(ent:GetFlexName(i))
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox