While scripting a mission for ArmA, I was trying to make a load and save feature for when the player joins and leaves the game. However after testing onPlayerConnected and onPlayerDisconnected I found out that in both cases the player is not yet in the game, and I cannot get his data to access the file. For joining, I was able to make a simple workaround to wait until he joins, but for leaving, the player is removed by the time it is fired. I'm requesting 2 new but similar functions:
onPlayerJoined:
Executes when a player enters the game, passes the variable "_player" as a reference to the player that has just joined.
onPlayerExit:
Executes just before a player is removed from the server whether it be picking a new role, disconnecting, losing connection or kicked. Player will remain in the game until function has finished executing. Also passes "_player"