DCS hook onPlayerStop
From DCS World Wiki - Hoggitworld.com
Revision as of 00:15, 15 May 2021 by Grimes (talk | contribs) (Created page with "{{Template:DCS_hooks_callbacks |fName= onPlayerStop |vNum= 2.5.0 |par1= hook |par2= |par3= |par4= |desc= Occurs just before DCS_hook_onPlayerDi...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to:navigation, search
| Envrioment: | Server | ||
| Function: | onPlayerStop | Added with: 2.5.0 | |
| Member Of: | hook | ||
| Syntax: | nothing hook.onPlayerStop(number id ) | ||
| Description: | Occurs just before onPlayerDisconnect if the user chose to leave the server.
| ||
| Return Value: | nothing | ||
| Return Actions: | |||
| Examples: | Adds a value to the clients table that was created when a player joins the server. This new value simply indicates that they decided to exit the sim and are not disconnecting due to a game crash.
clients = {}
function myCall.onPlayerStop(id)
clients[id].inSim = false
end
| ||
| 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 | ||
| Notes: | |||
