Page 1 of 1

What does this error mean

Posted: Sun Mar 30, 2003 6:18 pm
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^

Posted: Sun Mar 30, 2003 7:35 pm
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.

Posted: Mon Mar 31, 2003 11:38 am
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

Posted: Mon Mar 31, 2003 2:14 pm
by jv_map
Post in scripting ;)