Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple things.
#12
(08-16-2013, 12:58 PM)Gad Wrote:  
(08-15-2013, 01:31 PM)Blue Phoenix Wrote:  The third condition will always yield true.
doesn't
Code:
target.state !=(12 || 18)
equals
Code:
target.state !=12 && target.state != 18
?
I maybe thinking wrong though.
Well, can you phrase in words how you want it to be?
In case you're thinking of something along the lines of "target.state may be neither 12 nor 18", the above snippet is correct. Guess you managed to confuse me completely in my last post :p

(08-16-2013, 12:58 PM)Gad Wrote:  
(08-15-2013, 01:31 PM)Blue Phoenix Wrote:  Just to rule out anything, do you call "get_closest_enemy()" in your AI? Also, have you tried to print out the target-index + its xdistance?

Cmon, BP. I'm not THAT stupid.
I've been programming for months at least.
I know how to test the program ;P.
I printed the result of getting closest enemies.
Heh, I just wanted to be on the safe side :p

Have you tried to print out object-id AND xdistance to see if it changes at all?
Maybe even print out all t0-objects currently in-game and check manually if it picked the right one?


az u so ninja-y
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by:


Messages In This Thread
Simple things. - by Gad - 08-13-2013, 11:17 PM
RE: Simple things. - by YinYin - 08-14-2013, 06:36 AM
RE: Simple things. - by Gad - 08-14-2013, 08:02 PM
RE: Simple things. - by YinYin - 08-14-2013, 08:19 PM
RE: Simple things. - by Gad - 08-14-2013, 08:37 PM
RE: Simple things. - by YinYin - 08-15-2013, 04:38 AM
RE: Simple things. - by Gad - 08-15-2013, 09:49 AM
RE: Simple things. - by YinYin - 08-15-2013, 04:10 PM
RE: Simple things. - by Silverthorn - 08-15-2013, 01:31 PM
RE: Simple things. - by Gad - 08-16-2013, 12:58 PM
RE: Simple things. - by Azriel - 08-16-2013, 01:11 PM
RE: Simple things. - by Silverthorn - 08-16-2013, 01:22 PM
RE: Simple things. - by Gad - 08-16-2013, 02:37 PM



Users browsing this thread: 3 Guest(s)