Well I've tried searching for someone else who's had and solved this problem, but I haven't had any luck. I've been trying to get a snippet about AI's to fit into my project. Here's the code that I think is the problem.
FUNCTION AI_travel(bot#,x#,y#,z#,distance#,speed#)
`store the bot's current position
botX# = OBJECT POSITION X(bot#)
botY# = OBJECT POSITION Y(bot#)
botZ# = OBJECT POSITION Z(bot#)
`calculate the distance between the bot and the new location to travel to
botDist# = math_getDist3D(int(botX#),int(botY#),int(botZ#),int(x#),int(y#),int(z#))
`if the bot is less than the specified allowed distance away,
`make the bot face the new location and move forward
IF botDist# > distance#
POINT OBJECT bot#,x#,y#,z#
MOVE OBJECT bot#,speed#
ELSE
`If the task is completed, return a 1 signifying completion.
complete = 1
ENDIF
ENDFUNCTION complete
FUNCTION math_getDist3D(X1#,Y1#,Z1#,X2#,Y2#,Z2#)
SET VECTOR3 vecDist3D,X1#-X2#,Y1#-Y2#,Z1#-Z2#
dist = LENGTH VECTOR3(vecDist3D)
ENDFUNCTION int(dist)
Does anyone have any ideas? I've never encountered this error before. I'm fresh out of ideas and desperate for help.
P.S. The help section for when new user's post says that it will take a few hours to be approved, it took mine about 9 hours... and my reply for this one has been awaiting approval for a couple hours... if you dont beleive me, check the date of my post and the date of when the thread was posted.