Custom events
Last updated
Last updated
Custom events are special nodes which can alter the flow, allowing for a cleaner and more readable graph. They are also used to execute actions based on inputs deriving from an user interface.
To create a custom event, add it as an usual node and give it an unique EventName (which will be id the caller will need to use to call it). To call the custom event, add a CallCustomEvent node and use the same EventName as the CustomEvent node.
Custom events can't have the same EventName. Names must be unique. Failing in so results in a building error.
EventName inputs are case sensitive. Always check if the two names correspond or use copy and paste to minimize the chance of typos. Event callers without a corresponding EventName will result in a building error.
Custom events are also used to receive inputs from user interface elements and execute an action with them. They can either receive a boolean or single (float) value.
UI nodes passing a boolean argument are:
AddCheckbox
UI nodes passing a float argument are:
AddSlider