Mod:Creation Kit/IsChild - Location

Member of: Mod:Creation Kit/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
bool Function IsChild(Location akOther) native

Parameters

 * akOther: The other location to look at.

Return Value
Returns if the akOther location is a child of the location on which this function is called.

Examples
if (CityProperty.IsChild(HouseProperty)) Debug.Trace("The house location is a child of the City location") endIf
 * Is my house a child of the City location?