OK... the good thing:
I'm getting this in the console:
console wrote:INFO[jv_mp_ai::addroute]: Added route tracer for targetname triggernode.
...but there is someting wrong with the routelists now, they look like this and dont work:
Code: Select all
-------------------------
Route: bomb_to_desk
-------------------------
Node: [0] Type 'array'
Node: [1] route
Node: [2] route
Node: [3] route
Node: [4] route
Node: [5] route
Node: [6] route
Node: [7] route
Node: [8] route
Node: [9] route
Node: [10] route
LastID: 10
The workin ones look like this:
Code: Select all
Route: allied_bomb_short
-------------------------
Node: [0] list:
[1] bombnode
[2] bombcamp
[3] bombcamp
[4] bombcamp
[5] bombcamp
[6] bombcamp
[7] bombcamp
[8] bombcamp
Node: [1] route
Node: [2] route
Node: [3] route
Node: [4] route
Node: [5] route
Node: [6] route
LastID: 6
My guess here is that the fault is still in Node: [0]... because the
Code: Select all
INFO[jv_mp_ai::addtask]: Added task trigger (priority: 100).
is printed in the log AFTER the routes has been set up... and alll other tasks are added before the route setup...
???
My script looks like this:
Code: Select all
level waittill spawn
level.routelist[routes_to_desk_doc] = "wall_to_desk"::"bomb_to_desk"
level.routelist[routes_to_wall_doc] = "desk_to_wall"::"bomb_to_wall"
level.routelist[routes_to_bomb] = "axis_bomb_short"::"allied_bomb_short"::"axis_bomb_long"
$distiller_bomb thread global/jv_obj_dm.scr::bomb_thinker
waitthread global/jv_bots/jv_mp_ai.scr::addroute triggernode
waitthread global/jv_bots/jv_mp_ai.scr::enable 1 1 1 1
waitthread level.jvbot_main_script::addtask trigger 100
(The bot-part anyway)