Hello, guys!
I have a question about using Selected Data through custom script.
I saw the example where you use something like this:
List<Combatant> combatants = SelectedDataHelper.GetCombatants(dataHandler.Get("Combatants"));
But i don't get how to define dataHandler correctly. Should it be like this?:
SelectedDataHandler dataHandler = new SelectedDataHandler();
Seems it doesn't work for me and i need to get instance of dataHandler with data from Ork somehow but i don't see the option to make it. Any thoughts?
Generally, selected data is only 'alive' in a running event (or calculating formula).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Writing a custom node is probably your best option. It's easiest if you copy one of the existing node's code and modify it to your needs - e.g. the selected data nodes can be found in Gameplay/Events/Nodes/SelectedDataNodes.cs in the source code project.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!