Page 1 of 1

Is NOT XYZ work the same as XYZ = 1 ?

Posted: 06 May 2019, 12:00
by rickorton
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!)

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

Posted: 06 May 2019, 17:36
by Hairy Phil
It should work. I guess you put =1 instead of >0, so if there were two enemies, your bots didn't flee.