You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Text chat
Two-Player Kill feed
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.