ON CHAT MESSAGE

;Trigger
Whenever the local player receives a message from another player.
;Values passed to bound function
Value 	Type 	Description
channel 	string 	The message's channel (See list below...)
author_id	number 	Sending player's entity ID
text 	string 	Content of message
event 	string 	Is always "on_chat_message"
author 	string 	Sending player's name
dev 	boolean	isDev
;Examples
<nowiki>
Reply Message:
{
"event" = "on_chat_message",
"dev" = false,
"author_id" = <entityId>,
"text" = "<AFK> I am away from my keyboard",
"author" = "AuthorName"
}
Zone Message:
{
"event" = "on_chat_message",
"dev" = false,
"channel" = "zone",
"author_id" = <entityId>,
"text" = "@@ we lost it",
"author" = "AuthorName"
}
</nowiki>
== Notes ==
Known Channels:
* zone
* squad
* yell
* say (local)
* none (whisper)
Other Notes:
This event fires for messages from the local player in the squad channel, but not the others.
Currently the client prevents scripts from triggering an ON_CHAT_MESSAGE event.
Category:UI_Events