Skip to content

Commit

Permalink
Add et_Chat callback documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Exagone313 committed Jun 5, 2024
1 parent 59af503 commit f10585e
Showing 1 changed file with 12 additions and 0 deletions.
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.

0 comments on commit f10585e

Please sign in to comment.