Run away from, run towards
Moderator: Moderators
Run away from, run towards
how would i get a soldier to run away from a target, as long as where he runs to meets specific distance requirements? how would i make him run towards the target? its sort of like a min, max range. its also sort of like how they run away from a grenade. where is the script that tells them to run away from grenades?
Ai properties
It's all in the ai properties (key I). Have you seen these videos, thay are great: http://www.carbongraphx.com/mohaa/video ... als/AI.zip .
Well the run-away from grenades behaviour is in the game code, not in a script. It uses info_pathnodes with cover or concealment flag.
To script it is way more difficult since you cannot 'access' pathnodes without a targetname. I think you have to simplify your demands; do you really need them to run to a random location? Can't you just put a predefined pathnode or script_origin in the map and let the ai run to that?
To script it is way more difficult since you cannot 'access' pathnodes without a targetname. I think you have to simplify your demands; do you really need them to run to a random location? Can't you just put a predefined pathnode or script_origin in the map and let the ai run to that?

