[Scripting Issues] Can client check if a door is locked?
3 replies, posted
Hi again! I was coding a bit and I was trying to make an icon appear in the screen when the player was looking to a locked door. How I can make the client detecting if a door is locked or unlocked? Well... first of all: Is it possible? I've been looking by the gmod wiki and couldn't find anything. I also couldn't find anything of interest in google. Help and thanks!
Nope. I know you can do door:HasSpawnFlags(2048) or something like that on the server. But nothing client-side only.
On the server you can do:
door:GetSaveTable( ).m_bLocked
But that isn't networked. You'd just need to set a bool on the entity that is networked.
-snip-
Sorry, you need to Log In to post a reply to this thread.