Catching Commands
This page describes how to easily catch potential commands from your players.
Last updated
This page describes how to easily catch potential commands from your players.
Last updated
This page was written using AI. No idea if it really works!
The Ultimate Chat Box has many different events available. In this tutorial though, we will be taking a look at the OnInputFieldCommandUpdated and OnInputFieldCommandSubmitted events. Each of them have different uses, so let's dive into it!
The OnInputFieldCommandUpdated events is invoked any time the input field is updated with a potential command. This can be useful for providing auto-complete suggestions for your players, like inviting other players or playing emotes.
Here is a simple example:
The OnInputFieldCommandSubmitted event is triggered when the player submits a command through the input field. It's the perfect place to handle the execution of commands.
Here is an example on how to use this event: