Background for Fallout 4
Member of the Location script
boolfunctionHasCommonParent(LocationakOther, KeywordakFilter=NONE)Native

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

LocationakOther

CK Wiki Description

The other location to look at.

KeywordakFilter=NONE

CK Wiki Description

The Keyword to filter with, if provided.


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")
endIf

Auto-Generated Example

Location myLocation__akOther
Keyword myKeyword__akFilter

bool returnedValue = myLocation__toCallFunctionOn.HasCommonParent(myLocation__akOther, myKeyword__akFilter)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.