This site has been archived and made available for preservation purposes. No edits can be made.

OnPlayerChat

Gets called when a Player sent a message.

[top]Declaration

Code cpp:
VAULTSCRIPT VAULTSPACE State OnPlayerChat(VAULTSPACE ID, VAULTSPACE RawString) VAULTCPP(noexcept);
Code c:
forward OnPlayerChat(ID, message{});

[top]Parameters

ID - the ID of the Player
RawString - the entered message, which is a MAX_CHAT_LENGTH sized, modifiable buffer

[top]Return value

If returned True, the (updated) message will be sent to all clients. If returned False, the message is ignored.