# Merge With Project

### Parenting Player Controller

1\. Lobby Player Controller

You will need to parent NLPLobbyPlayerController. This is where all your events will be sent, which you can use to send to your widgets.

2\. Create Events

{% tabs %}
{% tab title="OnVoiceChatCreated" %}
{% embed url="<https://blueprintue.com/blueprint/qcu-8k2q/>" %}
{% endtab %}

{% tab title="OnToggleVoiceChat" %}
{% embed url="<https://blueprintue.com/blueprint/1119uzcu/>" %}
{% endtab %}
{% endtabs %}

It would probably be much easier for you to merge by going to `NLP Lobby Content > Blueprints > PlayerList > PC_Lobby`

Here is a list of our events, and we will provide an explanation for each one.

<table><thead><tr><th>Event Name</th><th>Description</th><th data-hidden></th></tr></thead><tbody><tr><td>OnVoiceChatCreated</td><td>This event occurs when a voice chat is initiated. It is typically used for setting up and notifying users about starting a voice chat.</td><td></td></tr><tr><td>OnToggleVoiceChat</td><td>This event is triggered when voice chat is toggled on or off. It handles enabling or disabling voice chat within the lobby.</td><td></td></tr><tr><td>OnPartyInviteReceived</td><td>This event is triggered when a friend sends a party invite. It handles the notification and subsequent actions required when a player receives a party invite.</td><td></td></tr><tr><td>OnChatMessageReceived</td><td>This event is triggered when a new chat message is received. It handles displaying or processing chat messages from other players in the lobby.</td><td></td></tr><tr><td>OnYouJoinedParty</td><td>This event is triggered when you join a party. It handles any setup or notification processes required when you successfully join a party.</td><td></td></tr><tr><td>OnLeaderStateChanged</td><td>This event is triggered when the party leader's state changes. It indicates whether the player is the party leader and handles any necessary updates or notifications.</td><td></td></tr><tr><td>OnPlayerJoinedParty</td><td>This event is triggered when a new player joins the party and handles any necessary updates or notifications related to the new party member.</td><td></td></tr><tr><td>OnPlayerLeftParty</td><td>This event triggers when a player leaves the party and handles any necessary updates or notifications related to the departure.</td><td></td></tr><tr><td>OnKickedFromParty</td><td>This event occurs when the player is kicked or disconnected from the party, triggering necessary actions such as creating a new party session.</td><td></td></tr><tr><td>OnAllPlayersReady</td><td>This event is triggered when all players in the party are ready. It handles any necessary actions or notifications when the entire party is ready to proceed.</td><td></td></tr><tr><td>OnLobbyCustomDataChanged</td><td>This event is triggered when the custom lobby data changes, handling updates related to any custom data structures within the lobby.</td><td></td></tr><tr><td>OnHostChanged</td><td>This event is triggered to inform clients of a new lobby host and handle any necessary updates or notifications when the host changes.</td><td></td></tr></tbody></table>


---

# 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://docs.nextlevelplugins.com/plugins/advanced-steam-party/how-tos/merge-with-project.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.
