Page MenuHomeFeedback Tracker

onPlayerJoined and onPlayerExit
Closed, ResolvedPublic

Description

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"

Details

Legacy ID
107524293
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Feature Request

Event Timeline

Knoxcorner edited Additional Information. (Show Details)
Knoxcorner set Category to Feature Request.
Knoxcorner set Reproducibility to N/A.
Knoxcorner set Severity to None.
Knoxcorner set Resolution to Open.
Knoxcorner set Legacy ID to 107524293.May 7 2016, 3:35 PM
Knoxcorner added a subscriber: Knoxcorner.

I also am having a problem with items dropping when players disconnect, allowing people to quickly relog and dupe them. removeAll... with this command would also save that problem that no one seems to be able to help me with.

MadDogX added a subscriber: MadDogX.May 7 2016, 3:35 PM

Mass closing ancient tickets with no activity for > 12 months; assume fixed or too trivial.

If this issue is still relevant in current dev build, please re-post.