Difference between revisions of "IsChild - Location"
Jump to navigation
Jump to search
imported>Terra Nova2 (Added note about this function not exactly telling the truth about rather the calling location is the parent of the passed in location. As well link to my page regarding location hierarchies.) |
imported>Terra Nova m (Undo revision 45566 by Terra Nova2 (talk)) |
||
Line 24: | Line 24: | ||
</source> | </source> | ||
== See Also == | == See Also == | ||
*[[Location Script]] | *[[Location Script]] | ||
*[[HasCommonParent - Location]] | *[[HasCommonParent - Location]] | ||
*[[IsSameLocation - Location]] | *[[IsSameLocation - Location]] | ||
Revision as of 02:51, 7 March 2016
Member of: Location Script
Returns if the other location is a child of this one. If they are the same location, the function returns false.
Syntax
bool Function IsChild(Location akOther) native
Parameters
- akOther: The other location to look at.
Return Value
Returns if the other location is a child of this one.
Examples
; Is my house a child of the Batooine location?
if (BatooineProperty.IsChild(MyHouseProperty))
Debug.Trace("My house is a child of the Batooine location")
endIf