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
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)
letposition=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