Entity.SetVar
From GMod Wiki
| Function | |
| Syntax | Entity:SetVar( Var index,Var value ) |
| Description: | |
| Sets Entity:GetTable()[index] to value. | |
| Returns: | nil |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.SetVar]Entity.SetVar [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Both the index and data can be of any type, just like a regular table.
- To make a variable that is writable by the Server, but read-only to the client, use Networking Variables