Hi all,
I was wondering if there was a way to create an FSMvariable that held variables (or variable names) so that templates could be made a touch more dynamic.
I currently have a template set up for picking up items, and I want to add an FsmBool switch that is set to true whether specific items are picked up (i.e if a crystal is picked up 'hasCrystal' is set to true). However, I was hoping to use the same template for other items as well, where rather than 'hasCrystal', picking up an ingot would set something like 'hasMetal' to true, and so on. I had the (probably bad) idea of using an input variable to store a variable name, then linking with that within the FSM, so I could just specify the needed variable in the inspector, however I couldn't find any relevant variable types. I assumed if one existed I could find it under FsmObject variable types, however I'm not too sure what I should be looking for. Is this something that is possible, or I am barking up the wrong tree completely?
Thanks in advance for any advice you can give!
Cheers!