I'm wondering if there is someway I can design my missile turrets to not aim at the same target. The reason is that I set my missile turrets to have one minute cooldown and it's a free kill each shot. That means, if two missile turrets shoot at the same time at a target, it's pretty much a big waste. Players will get one less kill and two turrets instead of one are now on cooldown for no reason.
Wish i had a 100% answer for you, but i'll help you with what i can, sorta been tackling this weapon acquire behavior myself.
What you want to adjust is the acquire behavior of your weapons, you don't want a specific enemy to be acquired for attack by another turret after the initial turret has decided to attack it. What you could do is add a second weapon to the turret that does no damage and fires instantly when the enemy is in range that applies an effect that applies a behavior to the unit. I would suggest making this behavior be something that makes the unit a detector, some sort of unit flag that doesn't impact the gameplay. Now adjust your weapon acquiring on the base turret weapon, make it exclude detectors. Your first turret should have already locked onto the target since it wasn't a detector and be readying its weapon to fire, but the moment it did that, it made the unit a detector, so moving into the range of other turrets should disable it from its target acquisition.
May be a better way but this is the only way i can think of right now.
Wish i had a 100% answer for you, but i'll help you with what i can, sorta been tackling this weapon acquire behavior myself.
What you want to adjust is the acquire behavior of your weapons, you don't want a specific enemy to be acquired for attack by another turret after the initial turret has decided to attack it. What you could do is add a second weapon to the turret that does no damage and fires instantly when the enemy is in range that applies an effect that applies a behavior to the unit. I would suggest making this behavior be something that makes the unit a detector, some sort of unit flag that doesn't impact the gameplay. Now adjust your weapon acquiring on the base turret weapon, make it exclude detectors. Your first turret should have already locked onto the target since it wasn't a detector and be readying its weapon to fire, but the moment it did that, it made the unit a detector, so moving into the range of other turrets should disable it from its target acquisition.
May be a better way but this is the only way i can think of right now.
That's a nice work around but I'm sure there is something. I was looking at the triggers and I found, AI Advanced -> Tactical AI Filter. Part of the desciption says, "A range of 0 to 1 will prevent more than one units from casting on the same target at the same time". Problem is, the trigger isn't very specific, so I have no idea how to set or even start this. Help please?
Use markers. A marker basically tells a unit "Don't shoot me." Then under target validators for the search effect, add "no markers." You can set the marker to only last a short period of time, so a single turret can shoot the same thing repeatedly.
Not so hard. I did it in 2 mins, took 1 validator 1 behavior and 1 effect to do.
Make behavior, i used buff type, it really does nothing but exists.
Create an apply behavior effect that applies this to target.
Create validator of type "compare behavior count on unit" (sth among those lines) that will count number of Buff on target checking if it's equal to zero.
Now to missile turret, follow it's weapon effect (should be missiles create persistent or sth), modify Effect - intial to Apply behavior effect, and Validator field to validator you made.
map included, you can see turrets weapon cooldowns there.
Thanks, much appreciated. However, I wonder if you know how to make it so that only one turret may continuously attack a unit. Regardless, this was definitely what I asked for.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm wondering if there is someway I can design my missile turrets to not aim at the same target. The reason is that I set my missile turrets to have one minute cooldown and it's a free kill each shot. That means, if two missile turrets shoot at the same time at a target, it's pretty much a big waste. Players will get one less kill and two turrets instead of one are now on cooldown for no reason.
@TrenixPL: Go
Worst case scenario you can drive this with triggers, but I'm pretty sure you can adapt the AI for it.
And how do I do that. I don't even know where to start...
Wish i had a 100% answer for you, but i'll help you with what i can, sorta been tackling this weapon acquire behavior myself.
What you want to adjust is the acquire behavior of your weapons, you don't want a specific enemy to be acquired for attack by another turret after the initial turret has decided to attack it. What you could do is add a second weapon to the turret that does no damage and fires instantly when the enemy is in range that applies an effect that applies a behavior to the unit. I would suggest making this behavior be something that makes the unit a detector, some sort of unit flag that doesn't impact the gameplay. Now adjust your weapon acquiring on the base turret weapon, make it exclude detectors. Your first turret should have already locked onto the target since it wasn't a detector and be readying its weapon to fire, but the moment it did that, it made the unit a detector, so moving into the range of other turrets should disable it from its target acquisition.
May be a better way but this is the only way i can think of right now.
That's a nice work around but I'm sure there is something. I was looking at the triggers and I found, AI Advanced -> Tactical AI Filter. Part of the desciption says, "A range of 0 to 1 will prevent more than one units from casting on the same target at the same time". Problem is, the trigger isn't very specific, so I have no idea how to set or even start this. Help please?
Wrong forum, moved to Data.
Bump..
@TrenixPL: Go
Siege Tanks (Siege Mode) are set to not target the same, so they have more splash effect. You could try looking into that.
Use markers. A marker basically tells a unit "Don't shoot me." Then under target validators for the search effect, add "no markers." You can set the marker to only last a short period of time, so a single turret can shoot the same thing repeatedly.
I need more help on this, I'm lost. I simply don't want two units to attack the same target at once.
Not so hard. I did it in 2 mins, took 1 validator 1 behavior and 1 effect to do.
map included, you can see turrets weapon cooldowns there.
Thanks, much appreciated. However, I wonder if you know how to make it so that only one turret may continuously attack a unit. Regardless, this was definitely what I asked for.