Description
Wiki Description
Returns if this location and the other have a common parent (filtering with a keyword, if provided). If the locations are identical, the function will return false.
Documentation Comment
Returns if these two locations have a common parent - filtered with the keyword, if provided
Caveats
Parameters
Examples
; Do the two locations have a common parent?
if (MyHouseProperty.HasCommonParent(JoesHouseProperty))
Debug.Trace("My house and Joe's house have a common parent")
endIf; Do the two locations have a common parent that is a town?
if (MyHouseProperty.HasCommonParent(JoesHouseProperty, TownProperty))
Debug.Trace("My house and Joe's house have a common parent that is a town")
endIfAuto-Generated Example
Location myLocation__akOther
Keyword myKeyword__akFilter
bool returnedValue = myLocation__toCallFunctionOn.HasCommonParent(myLocation__akOther, myKeyword__akFilter)Related Pages
- Location
- Location.IsChild(...)
- Location.IsSameLocation(...)
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
