OnNPCScriptLoad

From NPC for VCMP 0.4 Servers
Revision as of 07:54, 30 November 2022 by Habi (talk | contribs)
Jump to navigation Jump to search

Note: The argument params was added in v1.5 only

Description:
This function is called when a NPC script is loaded.


Parameters:

params
params : An array containing string values which was passed to the npcscripts via ConnectNPCEx or npcclient.exe with the usage of -w parameter.


Return Values:
This callback does not handle returns


function OnNPCScriptLoad(params)
{
	timer<- null;
	print("params array length is "+params.len()+"\n");
	print("arguments passed to script are:\n");
	foreach( arg in params)
		print(arg+"\n");
	
}