Hopefully it's okay that I have a second topic going. This problem is quite different from my other thread's, so I don't think I'm breaking any rules or anything.
I'm wondering if it's possible to detect (through validators) whether or not a unit was originally created by another unit. I know that sounds confusing, so here's an explanation of the purpose behind it:
If you've seen my Squad System (see my sig) then you'll likely know that I've been having trouble keeping squads intact. I've managed to make things like movement and attacking work okay, but only through the use of Search Area effects. The problem with these Search Area effects is that you occassionally end up 'grabbing' a unit from a nearby squad instead of the one that's actually selected.
The way my squad system works is quite simple. An invisible unit (a squished Thor) makes itself invisible upon creation and creates the squad of smaller units around itself via Create Unit effects.
Keeping the above in mind, it stands to reason that an ideal solution would be placing a validator on the Search Area effects so they can only grab units that have been created by the unit initializing the Search Area. I just realized that my explanation still sounds confusing, but hopefully you'll get what I mean.
To sum it up in one line:
Is it possible to create a validator (I'm not against using triggers to create a validator, if that's possible) which limits Search Area effects to only grabbing units created by the Caster?
Hopefully it's okay that I have a second topic going. This problem is quite different from my other thread's, so I don't think I'm breaking any rules or anything.
I'm wondering if it's possible to detect (through validators) whether or not a unit was originally created by another unit. I know that sounds confusing, so here's an explanation of the purpose behind it:
If you've seen my Squad System (see my sig) then you'll likely know that I've been having trouble keeping squads intact. I've managed to make things like movement and attacking work okay, but only through the use of Search Area effects. The problem with these Search Area effects is that you occassionally end up 'grabbing' a unit from a nearby squad instead of the one that's actually selected.
The way my squad system works is quite simple. An invisible unit (a squished Thor) makes itself invisible upon creation and creates the squad of smaller units around itself via Create Unit effects.
Keeping the above in mind, it stands to reason that an ideal solution would be placing a validator on the Search Area effects so they can only grab units that have been created by the unit initializing the Search Area. I just realized that my explanation still sounds confusing, but hopefully you'll get what I mean.
To sum it up in one line:
Is it possible to create a validator (I'm not against using triggers to create a validator, if that's possible) which limits Search Area effects to only grabbing units created by the Caster?