> For the complete documentation index, see [llms.txt](https://horizongames.gitbook.io/kronos-matchmaking/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://horizongames.gitbook.io/kronos-matchmaking/usage/reservations/completing-reservations.md).

# Completing Reservations

Completing a reservation means that the given player has arrived in the game, so his reservation no longer needs to be timed out.

## How To Complete Reservations

Reservations are completed automatically when a player has loaded the map and joined the game.&#x20;

The **exception to this is when the host uses seamless travel** to change maps (e.g. from lobby to game). Whether seamless traveling is used is set in the `GameMode` blueprint.

{% hint style="warning" %}
**IMPORTANT:** When seamless traveling is used, the host must complete the reservation of each seamless traveling player when they arrive on the new map.
{% endhint %}

For Blueprint projects, the game mode's `OnSwapPlayerControllers` event is a good place to complete the reservation of seamless traveling players. C++ projects can override the game mode's `InitSeamlessTravelPlayer` function directly.

{% tabs %}
{% tab title="Blueprint" %}

<figure><img src="/files/9lEGqxT9gPDpiQ96uCXu" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="C++" %}

```cpp
#include "KronosReservationManager.h"
#include "GameFramework/PlayerState.h"
```

```cpp
void AMyGameModeBase::InitSeamlessTravelPlayer(AController* NewController)
{
    Super::InitSeamlessTravelPlayer(NewController);
    
    // Make sure that the player state is valid.
    if (NewController->PlayerState)
    {
        // Get the reservation manager.
        UKronosReservationManager* ReservationManager = UKronosReservationManager::Get(this);
        
        // Check if we are managing reservations.
        if (ReservationManager->IsReservationHost())
        {
            // Complete the reservation of the player.
            ReservationManager->CompleteReservation(NewController->PlayerState->GetUniqueId());
        }
    }
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://horizongames.gitbook.io/kronos-matchmaking/usage/reservations/completing-reservations.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
