HasCommonParent - Location
Revision as of 16:27, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
Member of: Location Script
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.
SyntaxEdit
bool Function HasCommonParent(Location akOther, Keyword akFilter = None) native
ParametersEdit
- akOther: The other location to look at.
- akKeyword: The Keyword to filter with, if provided.
Return ValueEdit
Returns if this location and the other have a common parent location, filtered on the keyword if provided.
ExamplesEdit
; 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