Disabling routes?

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

Moderator: Moderators

Post Reply
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Disabling routes?

Post by Bjarne BZR »

Is there a way to "delete" a route dynamically?
My map has 3 objectives and no respawning, so the "disable spawns" won't work for me.

Basically I want to remove the routes leading to an objective once it has been completed... is this possible?
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It depends on what kind of route you mean, i.e. an AI path or a bot route.

An AI path can be disabled by using the disconnect_paths command (removes all paths intersecting the entity, e.g. $door disconnect_paths). A bot route can be disabled by clearing the route or routelist key of the destination. Example:
$bomb.routelist = NIL

Either way, when a bomb has exploded bots won't go to it anymore, since its priority automatically drops to zero.
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

jv_map wrote:Either way, when a bomb has exploded bots won't go to it anymore, since its priority automatically drops to zero.
This is what I was looking for I guess... but my problem is probably not that they run to the bomb, but that the routes to the triggers wont work ... they just dont know where else to go i guess :)
Admin .MAP Forums
Image
Head above heels.
Post Reply