Woodside235 Posted January 9, 2015 Share Posted January 9, 2015 Is there an event that triggers when you enter a server? I want character scripts to do stuff upon entering a world. Link to comment https://forums.kleientertainment.com/forums/topic/48768-scripting-join-server-event/ Share on other sites More sharing options...
rezecib Posted January 9, 2015 Share Posted January 9, 2015 @Woodside235, 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 https://forums.kleientertainment.com/forums/topic/48768-scripting-join-server-event/#findComment-599324 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now