SendChat

From NPC for VCMP 0.4 Servers
Revision as of 16:56, 9 March 2022 by 157.46.138.66 (talk) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
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.


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.