Example how to use function?
[File: root/game.py]
Perl
- if app.ENABLE_CHECK_IF_SAFEBOX_OPEN:
- onPressKeyDict[app.DIK_F5] =lambda:self.BINARY_Check_Safebox()
- if app.ENABLE_CHECK_IF_SAFEBOX_OPEN:
- def BINARY_Check_Safebox(self):
- import safebox
- if safebox.isOpen():
- chat.AppendChat(chat.CHAT_TYPE_INFO,"<<Debug>> Safebox is open!")
- else:
- chat.AppendChat(chat.CHAT_TYPE_INFO,"<<Debug>> Safebox is not open!")
Download:
- Bitte melden Sie sich an, um diesen Link zu sehen.