Entity.GetSaveTable

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity.GetSaveTable( )
Description:
Returns a table of save values for an entity
Returns: Table
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.GetSaveTable]Entity.GetSaveTable [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionDetermine if a door is locked
Used onNewerServer.png
Code
function IsDoorLocked( ent )
  return ent:GetSaveTable( ).m_bLocked
end
Outputreturns true if the door is locked

Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox