Jump to content
Sign in to follow this  
Confucius

nearestObject

Recommended Posts

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. sad.gif

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

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

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... smile.gif

Share this post


Link to post
Share on other sites

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. confused.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×