NPC:OnNPCDisconnect

NPC:OnNPCDisconnect

Description:
Callback NPC:OnNPCDisconnect called when the NPC gets disconnected from the server.
Callback NPC:OnNPCDisconnect was added in 0.3a and will not work in earlier versions!


Parameters:
(reason[])
string reason The reason why the bot has disconnected from the server.


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


Examples:
public OnNPCDisconnect(reason[])
{
    printf("Disconnected from the server. %s", reason);
}


Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.