IsChild - Location

From Creation Kit
Jump to: navigation, 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

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

; 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

See Also