Hey there guys.
I have just started to work with flowCanvas and I want some clarifications. I have just played with a little bit, found it amazing, but I’ll start using it on a main project soon.
1 – Can I have multiple flowscripts on same object ( separate important stuff in different .Assets and associate all to the same gameobject)?
2 – How can I access another flowscript variables?
3 – Can I set a variable inside playerHealth flowscript from my bullet flowscript?
Thank you in advance 😉
I saw the projects on the download section and i’ll also be following those to take a better grasp.
Hello and welcome 🙂
Thank you! I am glad you like FlowCanvas thus far. Please let me address your questions:
1) Yes, you can have multiple FlowScriptController Components attached, each with it’s own flowScript, but please note that all flowScripts on the same gameobject, will share the shame Blackboard Variables.
2) To get a variable from another flowScript (or to be more exact, from another “Blackboard”), please use the nodes in menu “Variables/Blackboard/Get Other Of Type (T)”, where (T) is the variable type you want to get. This node has two input ports, those being the “Blackboard” reference from which to get the variables, as well as the variable name to get from that Blackboard reference. You can simply drag and drop the “other” flowscript gameobject in the port references, or connect it through the port as usual.
3) In a similar fashion to above, there are corresponding nodes in menu “Variables/Blackboard/Set Other Of Type (T)”. This works exactly like the above #2, but instead, it “Sets” a variable of selected type and name, in the selected “Blackboard” reference 🙂
Please let me know if the above work for you, or if you have any more questions.