Page 1 of 1

Disabling routes?

Posted: Mon Jun 16, 2003 2:18 pm
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?

Posted: Mon Jun 16, 2003 2:38 pm
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.

Posted: Mon Jun 16, 2003 2:48 pm
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 :)