There are two ways to call a flowScript from code:
1) Custom Functions
– In flowScript, create a ‘Custom Function’ node and implement that function. Here is a [LINK] to the documentation about Custom Functions (by the end of the page).
– In code, you need to get a reference to the FlowScriptController that has the flowScript you want to call assigned and call ‘CallFunction’, something like this :