Entity.GetSaveTable
From GMod Wiki
Revision as of 10:34, 8 April 2011 by {FITH}™ Nexion {AJCF} (Talk | contribs)
| Function | |
| Syntax | Entity.GetSaveTable( ) |
| Description: | |
| Returns a table of save values for an entity | |
| Returns: | Table |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetSaveTable]Entity.GetSaveTable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Determine if a door is locked |
|---|---|
| Used on | |
| Code | function IsDoorLocked( ent ) return ent:GetSaveTable( ).m_bLocked end |
| Output | returns true if the door is locked |
Additional Notes
- Does not return the same values on the server and client.
- While it is a shared function, the server and client both have their own save tables for each entity and will return each one respective of where you call this function.