Lock
Lock/unlock objects or areas.
Introduction
Lock is a virtual padlock. It behaves like a Switch, but it only opens for players carrying the right key or knowing the right password. The Other device list with Lock highlighted. Image Select Lock from the Other device list. caption A lock is only half of the pair: it opens for players carrying a matching Key , or for anyone who types the right password when Key Mode is set to password. Spawn keys automatically with Key Spawner so players can actually find them.
How to Access
Select an object, open the Properties Panel, then press the Add Component button at the bottom and pick Lock. The component stacks onto the object as a new accordion of properties. How to Access - Add Component in the Properties Panel
Properties
Mode Button Edits the visual look of the lock in its locked and unlocked states. Output Channel Channel The old signal line for the lock. No longer maintained. Use Events and scripting instead. Reset Time Float How long until the lock automatically locks itself again. Key Mode Enum Whether the lock opens with a typed password or with a matching Key item ID. Password String The password players must type. Shows up when Key Mode is Password. Key Type Chooses which key item opens the lock. Shows up when Key Mode is ID. Interact Text The label on the interaction bubble. Property Type Description Every property on the Lock component.
Events
Lock has no events.
Commands
Lock has no commands.
Example
A locked door that only opens for players holding the matching key. Lock - simple example