From c55f1447b1dbdf9f2be304053f2a51fe6d358342 Mon Sep 17 00:00:00 2001 From: Elouan Martinet Date: Fri, 17 May 2024 12:27:59 +0200 Subject: [PATCH] Add et_Chat callback documentation --- callbacks.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/callbacks.rst b/callbacks.rst index 19d511c..03bd4ad 100644 --- a/callbacks.rst +++ b/callbacks.rst @@ -231,3 +231,13 @@ et_SpawnEntitiesFromString() ---------------------------- Called when an entity definition is parsed to spawn gentities. + + +et_Chat( sender, receiver, message ) +--------------------------------------------- + +Called whenever a player sends a chat message. It is called for each player receiving the message. + +* **sender** is the player sending the message. +* **receiver** is the player receiving the message. +* **message** is the chat message.