Skip to content

Overview

TheMode edited this page Apr 12, 2021 · 3 revisions

Properties

All callback can have a properties parameter, this object can contain multiple members and are specified either when executing a function, or filled automatically when an event is triggered.

For example if you have a Player field inside the properties object, you should be able to do: (see the types.md document)

let position = properties.player.position

Signal

Signals are all-purpose listeners. Register them like so

executor.onSignal(SIGNAL_NAME, (properties) => {
    // Your callback
})

This is where you will be able to listen for game events such as movements. Event signals are listed here

Clone this wiki locally