Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to: script Artificial Intelligence
#44
Code:
int ego(){

int xdistance = (self.x-target.x)*(2*(self.facing?1:0)-1);

int hitable = (target.y == 0 && target.state != 6 || target.state != 14);

How can i create more variables? When there is only one (int xdistance) everythings working, after add another one (int hitable), I'm getting this error:
Can't implicitly convert from 'bool' to 'int'.

Reply
Thanks given by:


Messages In This Thread
RE: How to: script Artificial Intelligence - by The Hari - 08-15-2013, 03:49 PM



Users browsing this thread: 1 Guest(s)