CheckKeys
clearscope bool CheckKeys(int locknum, bool remote[, bool quiet])
Note: This feature is for ZScript only. |
Usage
Checks to see if the Actor has the appropriate key. This is normally called when trying to interact with a locked door or switch.
Parameters
- locknum - The id of the key to check for.
- remote - If the check fails and this is true, display the message when hitting a remote switch and not the door message.
- quiet - Default is false. If true, don't play any sound or display any message if the check fails.
Return value
Returns true if the Actor had the key.
Examples
![]() |
Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated. |
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.