Usage
Syntax: obj.chat
Explanation
obj.chat is a pointer to the current chat of the object. The object can be a player or an NPC. The chat variable is used by the default system to display text. If you for example disable the default system, for example with enablefeatures(), on a player, the variable is useless unless you create a custom system that uses the chat variable.
Example
//#CLIENTSIDE function onPlayerChats() { if (player.chat == "/foo") { echo("I said '/foo'."); } }
... Would echo "I said '/foo'." into your F2 menu if you said "/foo" when the onPlayerChats() event triggers.
Categories
CategoryBuiltInVariable
There are no comments on this page. [Add comment]