Skip to content

4. Chat

Marco Silva edited this page Jun 5, 2024 · 2 revisions

Setup

To start using the chat system, you need to add Chat Components to your Player Controller. After adding this component you need to set the ChatID under "Chat" category. Make sure each Chat Component as a unique ID. You can think of this component as a message formatting type, therefore you should create different components for different chat implementations. Here's a few examples:

  1. Text chat
  2. Two-Player Kill feed
  3. One-Player Kill feed

Sending Messages

You can send messages from the Server or from the Chat Component. The message structure allows you to send the Player State of the sender or other participants, as well as raw text.

Receiving Messages

You can bind an event to the Component that will be triggered whenever a message is received.

Clone this wiki locally