# Home (Explanation)

## Explanation:

#### PlayerController:

If a vote is in progress, we request the current vote data when the player logs in.

1. BeginPlay ->
   1. RequestPlayersCountOnServerForPlayerVote ->
   2. S\_RequestPlayerAmount ->
   3. O\_RequestCurrentVotes ->
   4. S\_RequestCurrentVotes ->
   5. Get AC\_MapVote\_Manager and call S\_RequestCurrentVotes
   6. Return to PlayerController and call O\_LoadCurrentVotes
   7. Call UpdateVote on the MapVoteManager for each vote

#### AC\_MapVote\_Manager

1. StartVote (Server) ->
   1. handleVoteTimer ->
   2. If the vote is over ->
   3. handleEndOfVote ->
   4. StopVote & (ServerTravel or OpenLevel)
2. Player (Vote, Widget) ->
   1. GetOwningPlayer cast to PC\_MapVote ->
   2. O\_VoteForMap (Map \[Name])


---

# Agent Instructions: 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:

```
GET https://400-interactive.gitbook.io/mapvote/home-explanation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
