Dumb question (machine gun training)

fieryseraph
Hello World
Hello World
Posts: 1

Dumb question (machine gun training)

Post#1 » 02 Aug 2017, 06:10

Hello,

Dumb question. The training level with the machine gun, I can't get past it. I literally did what the tip tells me to do, program my machine gun to fire at a retreating enemy... but the retreating enemy doesn't die. He gets out of range before getting killed. Then, as I'm preparing to shoot at the second enemy, I get killed. If I move my machine gun to follow the retreating enemy, I die. If i don't move, I die. Not sure how to solve this level, and feeling a bit dumb about it. Thanks.

User avatar
Kanishka
Skynet
Skynet
Posts: 1421
Contact:

Re: Dumb question (machine gun training)

Post#2 » 02 Aug 2017, 07:27

Attack Closest Enemy (Not Out of Range, Attacked By Me), Attack Closest Enemy.
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

User avatar
LuBeNo
Autonomous Entity
Autonomous Entity
Posts: 532

Re: Dumb question (machine gun training)

Post#3 » 02 Aug 2017, 07:31

Welcome to the forum.

The only thing you have to do there is connect the unconnected attack node. Do not change the order of the two nodes. It will shoot 10 times and win.

You could also add another attack closest enemy node to the right and it will shoot 9 times and win. Moving against 2 players should loose this one.

Hope that helps.
Image
My algorithm of life: if(self.tired) sleep(); else if(self.hungry) eat(); else follow(Jesus);

User avatar
LuBeNo
Autonomous Entity
Autonomous Entity
Posts: 532

Re: Dumb question (machine gun training)

Post#4 » 02 Aug 2017, 07:35

Kanishka wrote:Attack Closest Enemy (Not Out of Range, Attacked By Me), Attack Closest Enemy.

Even better (shoot 8 times and win) but you loose more health.
Image
My algorithm of life: if(self.tired) sleep(); else if(self.hungry) eat(); else follow(Jesus);

User avatar
Kanishka
Skynet
Skynet
Posts: 1421
Contact:

Re: Dumb question (machine gun training)

Post#5 » 02 Aug 2017, 07:46

LuBeNo wrote:
Kanishka wrote:Attack Closest Enemy (Not Out of Range, Attacked By Me), Attack Closest Enemy.

Even better (shoot 8 times and win) but you loose more health.

Yes, but objective achieved. It's about efficiency :ugeek:
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

Carolhills
Hello World
Hello World
Posts: 1

Re: Dumb question (machine gun training)

Post#6 » 24 Jan 2019, 06:17

First of all, teh question is not dumb.
Kanishka wrote:Attack Closest Enemy (Not Out of Range, Attacked By Me), Attack Closest Enemy.

And this technique works for me. It saves my health, and yes, it is all about efficiency.
Starpro; Combat Sports Manufacturing Brand

Return to “Questions”

Who is online

Users browsing this forum: No registered users and 2 guests