How to find if a door is locked?

I have tried **[Entity.GetSaveTable

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=Entity.GetSaveTable)** but it just doesn’t appear to work, any help?



command "lua_run ents.FindByClass( "prop_door_rotating" )[1]:Fire( "lock", "", 0 )"
23:20:28 > ents.FindByClass( "prop_door_rotating" )[1]:Fire( "lock", "", 0 )...




command "lua_run print( ents.FindByClass( "prop_door_rotating" )[1]:GetSaveTable().m_bLocked )"
23:20:30 > print( ents.FindByClass( "prop_door_rotating" )[1]:GetSaveTable().m_bLocked )...
         true


That’s pretty much what I was doing, but I was using the function example from the wiki. By using the code directly like you have it works fine, thanks!