Confucius 0 Posted January 8, 2002 Hi all! I'm working on a script where i need an AI unit to find cover after he has been dropped by helo. I figured i could use nearestObject to find something like a tree or bush, but i can't seem to get it to work properly. I finally got it to return to objects, but they all appear to be different from the ones i need. I don't use the option to return only certain objects, so this shouldn't be the problem. So one very simple question remains: is it at all possible to retrieve the positions of trees/bushes...? Share this post Link to post Share on other sites
vitoal125 0 Posted January 9, 2002 why don't you just give him a move waypoint and set it to stealth, they should automatically find cover in stealth mode. Share this post Link to post Share on other sites
Confucius 0 Posted January 9, 2002 I'm creating a script that searches for the best location for setting up a base. I figured this could be done by moving an object of some kind around on the map (starting at the insert zone) until all conditions for a good location were satisfied. Things to look for could be: - enough cover? - are buildings near? - away form enemy activity? - etc. The nearestObject-command could help me here... Share this post Link to post Share on other sites
Rob 1 Posted January 9, 2002 Sounds like a rather confusing script your attempting there. Have you tried asking people at the editing centers forum? they have twice as many form areas and they even have a forum where you can request scripts.... try signing up there... i doubt your not going to get anything there.... they are very good.... what you are asking is taking other peoples time when most of us dont really want to. could attempt it but i have an exam nxt week so sorry. Share this post Link to post Share on other sites