Canceled Attacks & isAttacking

User avatar
TheGnoo
Automaton
Automaton
Posts: 175

Canceled Attacks & isAttacking

Post#1 » 11 May 2017, 18:25

Hi guys, I just bought this amazing game and I have two questions for you:

1- Is it possible not to cancel an attack ?
Sometimes, I'd prefer finish my attack rather than cancel it, but if the condition for attacking is no more validated, the attack cancels. Is there anyway to tell my bot to finish his attack before doing anything else ?

2- When does the "isAttacking" filter starts ? When someone begins to shoot someone else, or when a shot is effectively fired ? I have the feeling that my AI considers itself as attacked when it got shot, but look at this replay : 526271
We can see that the assault bot runs away directly when the enemy sniper STARTS shooting.

Thanks for your answers, sorry for bad english !

User avatar
Kanishka
Skynet
Skynet
Posts: 1421
Contact:

Re: Canceled Attacks & isAttacking

Post#2 » 11 May 2017, 19:08

1. IfSelfIsAttackingEnemy>AttackEnemySelfAttacking
2. IsAttacking starts as soon as you are aimed at.
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

User avatar
TheGnoo
Automaton
Automaton
Posts: 175

Re: Canceled Attacks & isAttacking

Post#3 » 11 May 2017, 19:38

Thanks a lot !

User avatar
Kanishka
Skynet
Skynet
Posts: 1421
Contact:

Re: Canceled Attacks & isAttacking

Post#4 » 11 May 2017, 19:39

TheGnoo wrote:Thanks a lot !


You're welcome. Feel free to contact me if you need any help. :)
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

User avatar
TheGnoo
Automaton
Automaton
Posts: 175

Re: Canceled Attacks & isAttacking

Post#5 » 11 May 2017, 21:13

Actually I do :p

When I try the "IfSelfIsAttackingEnemy>AttackEnemySelfAttacking", it continues to attack the enemy bot forever. I was looking for something that just finishes the current attack but then "clear" the fact that its attacking.

TheKidPunisher
Autonomous Entity
Autonomous Entity
Posts: 565

Re: Canceled Attacks & isAttacking

Post#6 » 11 May 2017, 21:51

For the moment there is no trigger for stop attacking just after the bullet are shots.

User avatar
TheGnoo
Automaton
Automaton
Posts: 175

Re: Canceled Attacks & isAttacking

Post#7 » 11 May 2017, 22:51

Okay, thanks for the information. It would have help me a lot with the sniping problem you told me about in the other post :(

Return to “Questions”

Who is online

Users browsing this forum: No registered users and 1 guest