Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions callbacks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,15 @@ et_SpawnEntitiesFromString()
----------------------------

Called when an entity definition is parsed to spawn gentities.


intercepted, message = 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.

Returns an integer (intercepted) and a string (message). If intercepted is 1, the chat message will be replaced.