Tactics pack - stop attack?

feenix

New member
Hello,

I've bought BD and tactics pack, working great but how do I setup a tree to correctly stop attacking when no longer "can see"?

I've tried parallel but cannot figure it out, any help appreciated.
 
Hi,

That's what I used in the end, a tree with a higher prioritise that kicks in when it can't see anymore. Seemed to work but I'm having a new issue:

When I run the attack demo scene "Attack" works as expected. If I create a new unit, testing with a cube (with collider and navmesh), if I try the same straight to "Attack" tree, it instantly completes without moving or sending any events. I am aiming at another cube set to "Enemy" tag (and same tag in "Attack" behaviour").

Am I just being dumb, why is it instantly completing without performing any action?

Help greatly appreciated
 
The best way to see why it is returning success is to place a breakpoint within Attack.OnUpdate and see why it is returning success immediately. Does it find the attack targets?
 
Top