Basically there is a type of unit that I want everything to be able to attack if you A+Click it manually, but I want one unit type to automatically acquire it as a target.
I thought I could do this by making the said unit neutral and making the units weapon auto-acquire neutral targets, but I don't seem to be able to make a weapon do that.
I can't just filter the unit out of aquire/scan/chase for all weapons except for the one I want to auto-aquire because the weapons still attack if you directly click on the unit, and I want it to take a+clicking to attack it. The only think I know of that works this way is nuetral units: If you click on them, your unit just walks to them, but you can still attack with a+click. But I can't get a weapon to auto-aquire nuetral units.
Make the unit in question neutral (going to call this unit targetee). Then give the unit that is supposed to auto-attack said unit (going to call this targeter) a behavior that does a Search Area every period. Set the radius for the unit's attack range of the targeter. Then have the effect be an Issue Order effect to target the targetee unit. You can set other validators like "unit not in combat" if you don't want this attack to take priority over an attack-ground order.
Thanks. I forgot they should only be auto-acquired by that unit type IF they are enemy, but I think I can still get that approach to work. Just have to have two different dummy behaviors added to the victim unit depending on which team built it, and have two different search area behaviors for each teams attacking units that have a validator checking for the right behavior on the target.
Basically there is a type of unit that I want everything to be able to attack if you A+Click it manually, but I want one unit type to automatically acquire it as a target.
I thought I could do this by making the said unit neutral and making the units weapon auto-acquire neutral targets, but I don't seem to be able to make a weapon do that.
I can't just filter the unit out of aquire/scan/chase for all weapons except for the one I want to auto-aquire because the weapons still attack if you directly click on the unit, and I want it to take a+clicking to attack it. The only think I know of that works this way is nuetral units: If you click on them, your unit just walks to them, but you can still attack with a+click. But I can't get a weapon to auto-aquire nuetral units.
Thanks!
Make the unit in question neutral (going to call this unit targetee). Then give the unit that is supposed to auto-attack said unit (going to call this targeter) a behavior that does a Search Area every period. Set the radius for the unit's attack range of the targeter. Then have the effect be an Issue Order effect to target the targetee unit. You can set other validators like "unit not in combat" if you don't want this attack to take priority over an attack-ground order.
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
Thanks. I forgot they should only be auto-acquired by that unit type IF they are enemy, but I think I can still get that approach to work. Just have to have two different dummy behaviors added to the victim unit depending on which team built it, and have two different search area behaviors for each teams attacking units that have a validator checking for the right behavior on the target.