ActionBarModule
ActionBarModule
provides a standard way of displaying information in the player’s action bar. When multiple messages want to be displayed, they will all appear, with a separator between them.
Usage
Import the module:
Use the module in your game’s initialize
function:
The interval
parameter defines the delay between each action bar update, in ticks.
Now, from any module, you can listen for the ActionBarModule.CollectActionBarEvent
to add a message to the action bar.
Considerations
- Games are not required to use
ActionBarModule
. If you are creating a module that is not specific to a single game, it is recommended to check if the module is present, falling back toplayer.sendActionBar
if not.