Jump to content
Sign in to follow this  
fabrizio_t

getHideFrom

Recommended Posts

Anybody successful in using "getHideFrom" ?

Syntax is: "object getHideFrom enemy", function returns hiding position.

I bet "object" is the unit to be hidden ... but can't have it to work.

Also i'd like to know which objects are taken in account as hiding objects, i suspect they are only the ones "coded" into the map (like findCover).

Share this post


Link to post
Share on other sites

Hmm - I had a look at the Biki description. It's a bit hard to decode the 'Czechlish' but my guess would be this:-

'object' is some object such as a large rock. 'Enemy' is a single unit .

The position returned will be one where the 'enemy' would be unable to see another unit because their line of sight would be occluded by the rock.

Just a guess - would welcome feedback if you find it actually works differently. smile_o.gif

Share this post


Link to post
Share on other sites

Can't get it to work in either way (object as unit / object as editor designed object): returned position is always [0, 0, 0];

I think it eventually works only with map-defined objects, but that's pretty useless ot me.

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  

×