SendChat: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Welcome| desc=This will run a .rec file which has to be saved in the npcscripts/recordings folder. The NPC will follow the actions recorded in the file.| params=<syntaxhighl...") |
No edit summary |
||
Line 1: | Line 1: | ||
{{Welcome| | {{Welcome| | ||
desc=This will | desc=This will send a chat message to the server.| | ||
params=<syntaxhighlight lang="lua">(text)</syntaxhighlight> | params=<syntaxhighlight lang="lua">(text)</syntaxhighlight> | ||
<poem>::text : The text to send as chat message.</poem>| | <poem>::text : The text to send as chat message.</poem>| |
Revision as of 18:27, 4 February 2023
Description:
This will send a chat message to the server.
Parameters:
(text)
text : The text to send as chat message.
Return Values:
This function does not return any specific values.
Example
function OnPlayerText(player, message) { if(message=="Hello") { SendChat("Hi. How are you?"); } }
Related Functions
The following functions may be helpful as they relate to this function in one way or another.