RealDocs

AGameModeBase::PostSeamlessTravel

function Engine Since 4.14
#include "GameFramework/GameModeBase.h"
Access: public Specifiers: virtual

Description

Called on the new GameMode after all seamless-travel players have been reinitialized. Use this for any one-time setup that depends on all pre-travel players being present.

Caveats & Gotchas

  • Players who joined **after** the server started traveling (late joiners) will not have been processed yet when this fires — they go through normal `PostLogin` later.
  • This is only called on the new GameMode, never on the old one. If you need to tear down state before the travel, override `StartToLeaveMap` instead.
  • The default implementation is empty, so `Super::PostSeamlessTravel()` is a no-op but should still be called for forward compatibility.

Signature

virtual void PostSeamlessTravel()

Return Type

void

Example

Start the match once all pre-travel players have loaded C++
void AMyGameMode::PostSeamlessTravel()
{
    Super::PostSeamlessTravel();

    // All pre-travel players are now reinitialized — safe to start the match
    StartMatch();
}

Version History

Introduced in: 4.14

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.