OnNPCConnect: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
desc=This function is called when an NPC successfully connect to a server.| | desc=This function is called when an NPC successfully connect to a server.| | ||
params=<syntaxhighlight lang="lua">(myplayerid)</syntaxhighlight> | params=<syntaxhighlight lang="lua">(myplayerid)</syntaxhighlight> | ||
::myplayerid::The player id the NPC has been given.| | <poem>::myplayerid::The player id the NPC has been given.</poem>| | ||
retvals=This function does not return any specific values.| | retvals=This function does not return any specific values.| | ||
example=<source lang="lua"> | example=<source lang="lua"> |
Revision as of 10:13, 9 March 2022
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"); }