I'm trying to use a validator to reliably determine is a unit is air, but the normal methods don't seem to be sufficient for me.
Using a Unit Filter validator doesn't work because it simply checks the unit's Plane Array field. I have various effects that temporarily modify this field to allow targets to be targettable as ground/air as they normally would not be, which would break this validator.
Using a Unit Mover validator doesn't work because it simply checks the unit's current move. I have several Launch Missile effects that launch units themselves as a pull/push effect, which temporarily overrides the units mover... again breaking the validator.
I noticed a Unit Flying validator, but it has literally no description whatsoever, so I have no idea what it's actually looking at to determine if the unit is flying. I assume it might be looking at the unit's Height field to check if it's greater than zero, but I have effects that temporarily raise and lower the height of units, so that wouldn't work either.
Thinking of just using some hidden flag like Prevents Defeat and having only flying units have this flag checked so that I can reliably use a Unit Filter validator, but this feels so much like a bandaid fix that I'd rather use an intended solution if there is one out there.
I'm trying to use a validator to reliably determine is a unit is air, but the normal methods don't seem to be sufficient for me.
Using a Unit Filter validator doesn't work because it simply checks the unit's Plane Array field. I have various effects that temporarily modify this field to allow targets to be targettable as ground/air as they normally would not be, which would break this validator.
Using a Unit Mover validator doesn't work because it simply checks the unit's current move. I have several Launch Missile effects that launch units themselves as a pull/push effect, which temporarily overrides the units mover... again breaking the validator.
I noticed a Unit Flying validator, but it has literally no description whatsoever, so I have no idea what it's actually looking at to determine if the unit is flying. I assume it might be looking at the unit's Height field to check if it's greater than zero, but I have effects that temporarily raise and lower the height of units, so that wouldn't work either.
Thinking of just using some hidden flag like Prevents Defeat and having only flying units have this flag checked so that I can reliably use a Unit Filter validator, but this feels so much like a bandaid fix that I'd rather use an intended solution if there is one out there.
@Nerevar714: Go Give a dummy behavior to all flying units and check for it.
@SoulFilcher: Go
Better idea than mine at the very least.
Or put something in the Editor: Comments field and use a Unit Compare Field validator to look for it.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg