#what is the difference between "Player left" and "Player leaving" ?
1 messages · Page 1 of 1 (latest)
Player leaving is the last Cv2 tick that executes on the leaving player, so if you have any last stuff you want a leaving player to execute, use this event. Player left executes AFTER the player has left the room.
the main difference is that when the player is leaving the player is still valid but at the point left fires it is no longer valid
@slate pilot No
@cyan bear Yes
@foggy garden
Player Left and Player Leaving both fire at roughly the exact same time, but of course Player Leaving executes first because why wouldnt it
Player Leaving fires the last frame a player will be valid, so you can do stuff like request data from their PDB, check if they have a role, check if they have a tag, etc
Player Left fires the frame the player is no longer valid, which can only be used for equality checks, Equals, List Contains, List Get First Index Of, List Get All Indices Of
This is what I said no?
No, because Player Leaving does not fire for the player who is leaving
The players circuits have already stopped responding
Wait actually?
yes
So can you not do any more executions and what not for that player on that tick?
Soon we will get a leaving event that fires for the local player
Yes
By the time Player Leaving fires, circuits will have stopped responding a few frames ago
So the only difference is that leaving player is still a valid player?
In essence, yes