Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to: script Artificial Intelligence
#41
I am getting the following error:

ai\690.as(4, 36): ERROR : / 'target' is not a member of 'const int&'

I probably has something to do with brackets that are placed wrong or something.. however, I can't get it fixed. When I add brackets, I get other errors (expected expression value). Who knows what this error means and how to fix it?

int ego(){
//close range:
if (target.y == 0 && abs(target.z-self.z) < 9) {
if (self.x-target.x > 0 && (self.x.target.x) < 50 && self.mp >= 180){DuA();} //D^A

EDIT: I may have figured it out, not sure... could the error mean that I have to make a true/false choice, and therefor I am using the wrong code?
Original character edits
Goku2021
LF2 Timelapse (open source mod)

Reply
Thanks given by:


Messages In This Thread
RE: How to: script Artificial Intelligence - by Memento - 06-26-2013, 08:20 PM



Users browsing this thread: 4 Guest(s)