@SwarmNerd: Go First thing you can do is to narrow the target filters of the weapon so it can't target most other unit stats. In the Overlord case Air, Biological and Armored should be required. But to make it really specific you can add a validator to the first effect called by the weapon, checking for the unit type of the target.
Once more unit types get involved you should quickly establish which you'll have more of: Different unit types to target or different targeting shemes.
For a modular system you could use Combine-OR validators containing Unit Type ones as target whitelists (good for few target unit types and/or many different targeting restrictions) or dummy buffs to identify members of one "target class" (good if you have many more different target unit types than targeting shemes, this basically works like extra Attributes once you run out of the hardcoded ones)
hey everyone,
I'm trying to making a unit that can only attack specific units. so lets say I have a marine, this marine can only attack overlords.
Thanks
@SwarmNerd: Go First thing you can do is to narrow the target filters of the weapon so it can't target most other unit stats. In the Overlord case Air, Biological and Armored should be required. But to make it really specific you can add a validator to the first effect called by the weapon, checking for the unit type of the target.
Once more unit types get involved you should quickly establish which you'll have more of: Different unit types to target or different targeting shemes.
For a modular system you could use Combine-OR validators containing Unit Type ones as target whitelists (good for few target unit types and/or many different targeting restrictions) or dummy buffs to identify members of one "target class" (good if you have many more different target unit types than targeting shemes, this basically works like extra Attributes once you run out of the hardcoded ones)
@SoulFilcher: Go
Thanks alot, the unit type validator worked perfect.