OnNPCDisconnect

From NPC for VCMP 0.4 Servers
Revision as of 13:49, 9 March 2022 by Habi (talk | contribs) (Created page with "{{Welcome| desc=This function is called when an NPC disconnect from the server.| params=<syntaxhighlight lang="lua">(reason)</syntaxhighlight> <poem>::reason : The reason why...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
This function is called when an NPC disconnect from the server.


Parameters:

(reason)

reason : The reason why the bot has disconnected from the server.


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


Example

function onNPCDisconnect(reason) 
{ 
     print("Disconnected from server. Reason:"+reason+"\n");
}