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

OnPlayerChat

This is an old revision of this page, as edited 08-06-2012, 04:34 PM by foxtacles (contribs). It may differ significantly from the current revision.
Gets called when a Player sent a message.

[top]Declaration

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

[top]Parameters

ID - the ID of the Container
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 blocked.