Endstar LUA API Documentation
|
This component manages locking and unlocking of an object as well as spawning the "lock plate" of the required key! More...
Public Member Functions | |
KeyLibraryReference | GetKeyReference () |
Which key is currently required to unlock this? | |
void | Unlock (Context instigator) |
Unlocks the door. The instigator does not have to have the key, as this could be done from say, a lever. If you are calling this from an interactable interaction, check if the context is a player, and if so, do they have the required key before calling this! | |
bool | GetIsLocked () |
This component manages locking and unlocking of an object as well as spawning the "lock plate" of the required key!
bool GetIsLocked | ( | ) |
KeyLibraryReference GetKeyReference | ( | ) |
Which key is currently required to unlock this?
void Unlock | ( | Context | instigator | ) |
Unlocks the door. The instigator does not have to have the key, as this could be done from say, a lever. If you are calling this from an interactable interaction, check if the context is a player, and if so, do they have the required key before calling this!
instigator | The source context that is triggering this change |