Difference between revisions of "GetLocation"

From Dragon Age Toolset Wiki
Jump to: navigation, search
Line 1: Line 1:
{{Generated}}
 
 
{{dafunction
 
{{dafunction
 
|name=GetLocation
 
|name=GetLocation

Revision as of 08:55, 13 November 2009

Returns the location of the specified object.

location GetLocation(
object oObject
);
Parameters:
oObject
the object to get the location of
Returns:

a valid location on success or invalid location on error

Source:

script.ldf

Description

This function returns the location of the specified object. If an invalid object is specified, then an invalid location will be returned.


Examples

To get the location of the current PC/Hero:
location currentLocation = GetLocation(GetHero());


See also

IsLocationValid