When Client is connected to a Server and Server loads new map, all Clients follow this Server to the new map. Is there a way to set parameters for a specific Client when he is executing ClientTravel? I want to copy some Client’s variables from the old map to the new one. I’m running Dedicated Server.
You should use seamless travel for that:
This paragraph is from the final section on the page:
Persisting Actors across Seamless Travel
When using seamless travel, it’s possible to carry over (persist) actors from the current level to the new one. This is useful for certain actors, like inventory items, players, etc.
By default, these actors will persist automatically:
-
The GameMode actor (server only)
-
Any actors further added via
AGameModeBase::GetSeamlessTravelActorList -
All Controllers that have a valid
PlayerState (server only) -
All PlayerControllers (server only)
-
All local PlayerControllers (server
and client) -
Any actors further added via
APlayerController::GetSeamlessTravelActorList
called on local PlayerControllers