Entity.GetFlexName
From GMod Wiki
| Function | |
| Syntax | Entity:GetFlexName( Integer flex ) |
| Description: | |
| Returns the name of a given flex | |
| Returns: | String |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetFlexName]Entity.GetFlexName [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 do print(ent:GetFlexName(i)) end |
| Output | N/A |
Additional Notes
- Indexing starts at 0, thus, 0 is the first flex of an entity, and ent:GetFlexNum()-1 is the last flex.