mirror of
https://github.com/etlegacy/etlegacy-lua-docs.git
synced 2024-11-22 04:01:37 +00:00
Add et_Chat callback documentation
This commit is contained in:
parent
59af5035f4
commit
f10585e50d
1 changed files with 12 additions and 0 deletions
|
@ -231,3 +231,15 @@ et_SpawnEntitiesFromString()
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
Called when an entity definition is parsed to spawn gentities.
|
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.
|
||||||
|
|
Loading…
Reference in a new issue