Jump to content

Detect if player exits the mission (SP)

Recommended Posts

Is there a way to detect if the player leaves a SP mission via the pause menu -> Save & Exit?


I know about onPlayerDisconnected, but this doesn't work in SP.

I'm asking because BIS still didn't fix the setAperture command. It still doesn't reset when the player goes to the main menu, as discussed here. The result is a white or black screen in the main menu, depending the set aperture in the mission.


I would like to setAperture -1; when the player exits the mission.


Thanks a lot!


Share this post

Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now