Jump to content

[Scripting] join server event?

Recommended Posts


  • ms_playerjoined event -- this gets triggered in player_common, as the prefab is being made, which means it only occurs after the player has selected a character. The client table changes earlier, when they first reach character select.
  • ms_playerspawn event -- similar, just gets pushed a little sooner (ms_playerjoined is put into a DoTaskInTime, although that line is called sooner)
  • ms_newplayercharacterspawned event -- gets triggered after someone picks a character. Unfortunately, the client table changes before that.
  • playeractivated event -- pushed during the spawning of the player, so still too late. For other applications, this is useful because it's pushed after the HUD has been attached to the player.
  • entercharacterselect event -- pushed locally instead of on the server, and still ends up being later than the client table gets updated.
  • ms_playerleft event -- this seems to work well enough for players leaving changing the client table, but it still leaves open how to handle it as they join
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...