Entity.GetFlexNum
From GMod Wiki
Function | |
Syntax | Entity:GetFlexNum( ) |
Description: | |
Returns the number of flexes this entity has | |
Returns: | Integer |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetFlexNum]Entity.GetFlexNum [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Prints the name of every flex from the entity ent to the console. |
---|---|
Used on | |
Code | local FlexNum = ent:GetFlexNum() - 1 for i=0, FlexNum-1 do print(ent:GetFlexName(i)) end |
Output | N/A |