Is there a “Player changed levels” event?

Basically I have a working elevator that’s supposed to trick you into thinking it’s moving. The elevator has a humming sound with player head shake. Whenever I make it start under event begin play, the game opens with the elevator “moving” until it stops and the door opens just fine. The issue is when I press a floor button, the humming starts and then it transitions levels into another of the same elevator actor, but in a different level if that makes sense. However the humming and head shake doesn’t start as it’s supposed to. I’m assuming when you transition levels it doesn’t restart the event begin play node? Is there a way for my elevator to recognize my player has switched levels and to start the humming and shake again?

Unreal Engine doesn’t have a built-in “Player changed levels” event. However, you can create custom logic in your GameInstance class to detect level transitions and notify relevant actors like your elevator. This ensures your elevator restarts its humming sound and head shakes when a level change occurs.

1 Like