GetSafeLocation

From Dragon Age Toolset Wiki
Revision as of 18:48, 2 March 2010 by BryanDerksen (Talk | contribs) (looks okay, removing tag)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This function will compute a new safe location based on the specified location.

location GetSafeLocation(
location lLocation
);
Parameters:
lLocation
The location to base a new safe location off of (if necessary)
Returns:

a valid safe location

Source:

script.ldf

Description

This function will compute a new safe location based on the specified location. If the specified location is a safe location, then that location will be returned. A safe location is a walkable section of terrain that is not occupied by a creature. It should be noted that walkable also means that the specified location would not be occupied by a placeable object, unless the placeable object had no walkmesh.

Remarks

This function is expensive, and as such should not be called frequently if it can be helped.


See also

IsLocationSafe