Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 22
Quickchat
Tyler edited this page May 29, 2019
·
1 revision
RLBotDll.sendQuickChat(this.index, false, QuickChatSelection.Apologies_Oops);publicclassSampleBotextendsBaseBot {
@OverridepublicControllerStateprocessInput(rlbot.flat.GameTickPacketgameTickPacket) {
try {
QuickChatMessagesquickChatMessages = this.receiveQuickChat();
for (inti = 0; i < quickChatMessages.messagesLength(); i++) {
QuickChatchat = quickChatMessages.messages(i);
System.out.println("Heard " + QuickChatSelection.name(chat.quickChatSelection()) + " from " + chat.playerIndex());
}
} catch (RLBotInterfaceExceptione) {
e.printStackTrace();
}
}
}Make sure you extend BaseBot so you get access to this.receiveQuickChat().