What does this error mean

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
bodybagger
Sergeant
Posts: 52
Joined: Mon Jan 06, 2003 5:27 pm

What does this error mean

Post by bodybagger »

Could explain what these errors mean, thanks in advance

^~^~^ Script Error: binary '-' applied to incompatible types 'vector' and 'NIL'

local.distance = vector_length(self.origin - local.node.origin) (global/jv_bots/jv_mp_ai.scr, 854)
local.distance = ^

^~^~^ Script Error: Cannot cast 'NIL' to vector

if(local.shortest_distance == NIL || local.distance < local.shortest_distance) (global/jv_bots/jv_mp_ai.scr, 855)
if(local.shortest_distance == NIL || local.distance ^

^~^~^ Script Error: binary '<' applied to incompatible types 'NIL' and 'float'

if(isAlive self && self.task == local.task && local.node.action != NIL) (global/jv_bots/jv_mp_ai.scr, 932)
if(isAlive self && self.task == local.task && local.node^

^~^~^ Script Error: Cannot cast 'NIL' to listener

local.distance = vector_length(self.origin - local.node.origin) (global/jv_bots/jv_mp_ai.scr, 854)
local.distance = vector_length(self.origin - local.node^
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

A route is broken. Start the bots with this line:

waitthread global/jv_bots/jv_mp_ai.scr::enable 0 0 1 0

To enable route debug console output.
Image
bodybagger
Sergeant
Posts: 52
Joined: Mon Jan 06, 2003 5:27 pm

Post by bodybagger »

Ok cool that mate that worked fine..
Just one other q??
I have an objective for each side to complete, 1 bomb for allied and 1 bomb for axis.
How would i set up the script so that whoever completes there objective first wins and the game finishes???

Thanks again
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Post in scripting ;)
Image
Post Reply