IsChild - Location
Jump to navigation
Jump to search
Member of: Location Script
Returns true if the other location is a child of this one. If they are the same location, the function returns false.
Syntax[edit | edit source]
bool Function IsChild(Location akOther) native
Parameters[edit | edit source]
- akOther: The other location to look at.
Return Value[edit | edit source]
Returns if the akOther location is a child of the location on which this function is called.
Examples[edit | edit source]
; Is my house a child of the City location?
if (CityProperty.IsChild(HouseProperty))
Debug.Trace("The house location is a child of the City location")
endIf