DCS hook onPlayerStart

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


Envrioment: Server
Function: onPlayerStart Added with: 2.5.0
Member Of: hook
Syntax: nothing hook.onPlayerStart(number id )
Description: Occurs when a player has fully loaded into the simulation and can select a slot.


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 have fully loaded.
  clients = {}
  function myCall.onPlayerStart(id)
     clients[id].inSim = true 
  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: