2007.08.22, 04:51 PM
Well, I need to kinds of nodes for my game, cover nodes, and attack nodes.
I made these.
Problem? Well, when I script it to run to the nearest node, it finds the id, the name, it runs to the name, but since the name isn't unique it runs to the first one of those ever made.
I CAN'T make all the names unique, because the bot also runs using obj.motionVector.walkToPlayer(); and I need it to be able to switch and run back to a DIFFERENT attack node by choosing the nearest one then continue on that path to a DIFFERENT cover node, and if I don't know what the name of the cover node (or attack node) I can't run to it
.
I've been trying to make good+simple AI and now I've coded myself into a corner :P.
Ideas?
I made these.
Problem? Well, when I script it to run to the nearest node, it finds the id, the name, it runs to the name, but since the name isn't unique it runs to the first one of those ever made.
I CAN'T make all the names unique, because the bot also runs using obj.motionVector.walkToPlayer(); and I need it to be able to switch and run back to a DIFFERENT attack node by choosing the nearest one then continue on that path to a DIFFERENT cover node, and if I don't know what the name of the cover node (or attack node) I can't run to it
.I've been trying to make good+simple AI and now I've coded myself into a corner :P.
Ideas?

.