OnNPCConnect

From NPC for VCMP 0.4 Servers
Revision as of 10:11, 9 March 2022 by Habi (talk | contribs) (Created page with "{{Welcome| desc=This function is called when an NPC successfully connect to a server.| params=<syntaxhighlight lang="lua">(myplayerid)</syntaxhighlight> ::myplayerid::The play...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
This function is called when an NPC successfully connect to a server.


Parameters:

(myplayerid)
myplayerid::The player id the NPC has been given.


Return Values:
This function does not return any specific values.

example=
function OnNPCConnect(myplayerid) 
{ 
     print("I have been connected with ID:"+myplayerid+"\n");
}