The Flowgraph is the implementation of visual scripting, so allowing non-programmers to interact with different parts of CRYENGINE.
For more information about the Flowgraph in the Sandbox Manual see: Flow Graph Editor.
Adding the FlowEvents Table
The FlowEvents table is needed to define the custom inputs and outputs supported by the Script Entity.
Value types supported for inputs and outputs:
Adding a Flow Node Input
The following line, taken from the Inputs table contained inside the FlowEvents, outlines the addition of a flow node input.
Each input element is defined by its name and a table which contains two elements:
- A reference to the script function to call when the input is activated
- The value type accepted by the input.
The following code snippet represents a skeleton of the implementation of a function that would receive the flow input.
The following code snippet represents the implementation of a function that would read the input value.
Adding a Flow Node Output
A new element needs to be added to the Outputs table with a name and the value type of the output. Example:
An output is activated by calling the function
BroadcastEvent with a string representing the name of the output to be activated.
If output value matters, use function