If anyone remembers the old splash defense games you basically have a bunch of tanks that shoot at "targets" or medics which were basically unkillable. then enemies would run past the target and get shot up. Anyway im having trouble making the tanks automatically shoot at the targets, they will shoot at them if told but they won't automatically do it themselves.
I was thinking maybe i need some triggers to make them attack the nearest target upon creation, is that the only way?
Well, if you were a tank, would you just start shooting at a friendly MEDIC? I hope not D:
Anyway, yea you do need triggers. You could do it like that:
Event:
- Any unit enters (playable map area)
Condition
- Unit type of entering unit equal Siege Tank
Action
- Order (triggering unit) to attack Medic
If anyone remembers the old splash defense games you basically have a bunch of tanks that shoot at "targets" or medics which were basically unkillable. then enemies would run past the target and get shot up. Anyway im having trouble making the tanks automatically shoot at the targets, they will shoot at them if told but they won't automatically do it themselves.
I was thinking maybe i need some triggers to make them attack the nearest target upon creation, is that the only way?
I found a better way. I gave the Target a behavior that calls a search for all the tanks in the area and tells them to attack it.