Is NOT XYZ work the same as XYZ = 1 ?

rickorton
Hello World
Hello World
Posts: 1

Is NOT XYZ work the same as XYZ = 1 ?

Post#1 » 06 May 2019, 12:00

So I rewrote my AI's b/c I thought it was so much cooler to say 'Flee if Enemy Not Out of Range'.



But then my team started suiciding, so I put each block back the way they were before.

Is there a cleaner way to say "Flee if Enemy is in short range or medium range or long range"?



I keep wondering if it's a bug, or did I code it wrong? (I'm in no way a coder!)

User avatar
Hairy Phil
Automaton
Automaton
Posts: 153
Contact:

Re: Is NOT XYZ work the same as XYZ = 1 ?

Post#2 » 06 May 2019, 17:36

It should work. I guess you put =1 instead of >0, so if there were two enemies, your bots didn't flee.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 0 guests