DCS hook onPlayerDisconnect

From DCS World Wiki - Hoggitworld.com
Revision as of 00:10, 15 May 2021 by Grimes (talk | contribs) (Created page with "{{Template:DCS_hooks_callbacks |fName= onPlayerDisconnect |vNum= 2.5.0 |par1= hook |par2= |par3= |par4= |desc= Occurs when a player disconnects f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Envrioment: Server
Function: onPlayerDisconnect Added with: 2.5.0
Member Of: hook
Syntax: nothing hook.onPlayerDisconnect(number id )
Description: Occurs when a player disconnects from a server.

Return Value: nothing
Return Actions:
Examples: Removes whatever is in the client table at the index id.
  clients = {}
  function myCall.onPlayerDisconnect(id)
     clients[id] = nil
Related Functions: List of Callbacks: onMissionLoadBegin, onMissionLoadProgress, onMissionLoadEnd, onSimulationStart, onSimulationStop, onSimulationFrame, onSimulationPause, onSimulationResume, onGameEvent, onNetConnect, onNetMissionChanged, onNetConnect, onNetDisconnect, onPlayerConnect, onPlayerDisconnect, onPlayerStart, onPlayerStop, onPlayerChangeSlot, onPlayerTryConnect, onPlayerTrySendChat, onPlayerTryChangeSlot