Skip to content

Commit f10585e

Browse files
committed
Add et_Chat callback documentation
1 parent 59af503 commit f10585e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

callbacks.rst

+12
Original file line numberDiff line numberDiff line change
@@ -231,3 +231,15 @@ et_SpawnEntitiesFromString()
231231
----------------------------
232232

233233
Called when an entity definition is parsed to spawn gentities.
234+
235+
236+
intercepted, message = et_Chat( sender, receiver, message )
237+
-----------------------------------------------------------
238+
239+
Called whenever a player sends a chat message. It is called for each player receiving the message.
240+
241+
* **sender** is the player sending the message.
242+
* **receiver** is the player receiving the message.
243+
* **message** is the chat message.
244+
245+
Returns an integer (intercepted) and a string (message). If intercepted is 1, the chat message will be replaced.

0 commit comments

Comments
 (0)