Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to: script Artificial Intelligence
#39
Also one more thing, that is here:
Code:
(self.mp <= 400 && (abs(self.z-target.z) > 40) || (abs(self.x-target.x) < 1000 && abs(self.x-target.x) > 320))
I would recommend you use parentheses when using "||" and "&&" at the same time. Cuz without them, you can make sure the computer will interpret condition the way you want.

P.S: a mod should please merge these to the new thread.
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:


Messages In This Thread
RE: How to: script Artificial Intelligence - by A-Man - 05-07-2013, 03:17 PM



Users browsing this thread: 1 Guest(s)