Jump to content
Sign in to follow this  
hawk66de

Detecting Walls

Recommended Posts

Hi,

I want to detect walls and other obstacles. Any chance to get such information via script?

The reason is that I want to dynamically move AI groups to proper locations for hiding.

Share this post


Link to post
Share on other sites

Mhh... i think the ai finds hidingpositions very well, but you can get objects with

_obj = nearestObjects [unit, ["house"], 200];

Instead of house try "wall" or "fence" (or ["wall","fence"]).

Share this post


Link to post
Share on other sites

It won't work with fences, because the do not have config entry (required for detection in scripting commands).

Share this post


Link to post
Share on other sites

Thanks, it's sufficient for men; I think.

I do not want to move the team with low-level commands but searching for good places to hide if the resistance is too tough.

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  

×