Message Global Logic¶
Description¶
The Message Global Logic Node sends a message to the global logic in your
game. The global logic should have an On Message node
correctly configured to handle the message, otherwise it will have no effect.
The ID of the message is used to choose which On Message flow will handle the message, and the optional parameters P1 and P2 are passed to the message handler to provide additional information that can be arbitrarily defined by the game designer.
Ports¶
- Flow In
- In order for this node to perform its operation, it must be connected into an active flow using this input port. The flow will ultimately originate at a Trigger node but can come from the Flow Out port of any other flow node.
- Flow Out
- A node connected to the Flow Out port will be executed in sequence following the completion of this node's operation.
- ID
- An integer input port used to provide ID of the message, this controls which flow on the global object will handle the message, only On Message flows with a matchin ID will be executed.
- P1
- An integer input port used to provide an arbitrary parameter to the handler, the purpose of which is defined by the game designer.
- P2
- An integer input port used to provide an arbitrary parameter to the handler, the purpose of which is defined by the game designer.
Parameters¶
- ID
- A constant integer value for the message ID, used when the ID port is not connected.
- P1
- A constant integer value for the optional P1 parameter, used when the P1 port is not connected.
- P2
- A constant integer value for the optional P2 parameter, used when the P2 port is not connected.