myself counts as ally?

User avatar
Hairy Phil
Automaton
Automaton
Posts: 135
Contact:

myself counts as ally?

Post#1 » 10 Oct 2018, 19:07

In the attached screenshot, I have a node that says if there are two bots attacking me, and they're not being attacked by allies, then I should flee. The green sniper and red machinegun both meet this criteria, but my node isn't triggering. I checked and they are both attacking me (as opposed to moving for example), and I let it run for a couple more ticks to see if there was a delay, but no. The only reason I can imagine that this isn't working is that my assault is counting itself as an ally when attacking the sniper.

Beta 2.1.
Attachments
attacked.png
attacked.png (1.62 MiB) Viewed 59 times

User avatar
GFX47
Dev
Posts: 2826

Re: myself counts as ally?

Post#2 » 10 Oct 2018, 23:09

Just checked the code, I exclude "myself" from the test.
Are you sure your sniper or the enemy bots are not switching targets?

User avatar
Hairy Phil
Automaton
Automaton
Posts: 135
Contact:

Re: myself counts as ally?

Post#3 » 11 Oct 2018, 00:10

Found it. Although the machinegun displays that he is attacking, he was taking a step forward at the start of that tick (taking him in to medium range), so my AI thinks he's moving.

So nevermind, no bug here. Thanks for checking.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest