DCS hook onPlayerStop
From DCS World Wiki - Hoggitworld.com
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: |