Hello,
I think I have a very simple question and need help with this. I have Bribe's Unit Indexer and am hoping to have it help me accomplish this easily.
I'm making a TD and I want it so that every time a unit enters a region the system will track the amount of regions they have been in with a variable.
Basically, if someone blocks and the units decide to attack, I want to be able to reset their paths independently. So Ideally every time they enter a new region(checkpoint) they will get +1 attached to them, and when someone blocks and they attack, when the units kill the blocking tower they will all get picked and ordered to move to "Point[Array]" and the array being aligned with the tracking number (+1) I was referring to. Meaning they will resume travelling on their designated paths.
I know this is easy with like a hashtable or maybe just an array but I do not know how to do it.
Edit: Maybe im overthinking it and there's an easier way, if this is the case I hope someone tells me
I think I have a very simple question and need help with this. I have Bribe's Unit Indexer and am hoping to have it help me accomplish this easily.
I'm making a TD and I want it so that every time a unit enters a region the system will track the amount of regions they have been in with a variable.
Basically, if someone blocks and the units decide to attack, I want to be able to reset their paths independently. So Ideally every time they enter a new region(checkpoint) they will get +1 attached to them, and when someone blocks and they attack, when the units kill the blocking tower they will all get picked and ordered to move to "Point[Array]" and the array being aligned with the tracking number (+1) I was referring to. Meaning they will resume travelling on their designated paths.
I know this is easy with like a hashtable or maybe just an array but I do not know how to do it.
Edit: Maybe im overthinking it and there's an easier way, if this is the case I hope someone tells me