Close Room
Leaves the room gracefully: the local peer leaves the room on the server, every peer that was announced through On Peer Joined is reported through On Peer Left, the room status changes to closed, and the native room is freed (at the latest after two seconds). Use Free Room to release the room immediately instead.
- Node type: Callable function. Has execution pins and runs when it is reached in the event graph.
- Target: Odin Room
- Menu category: Odin
- Search keywords: Disconnect, Close Connection, Leave Room
- C++:
UOdinRoom::CloseRoom
note
Must be called on the game thread. Returns false if there is no native room. Use FreeRoom to release the native room immediately without waiting.
Inputs
| Name | Type | Description |
|---|---|---|
| Target | Odin Room | The Odin Room to call this function on. |
Outputs
| Name | Type | Description |
|---|---|---|
| Return Value | Boolean | False if there was no native room to close. |