Description
Wiki Description
Returns true if the calling location is the same as the supplied location. Or, if an optional keyword is supplied it also returns true if the locations share a parent with that keyword, or one of the locations has the keyword and is a parent of the other.
Documentation String
Returns true if the calling location is the same as the supplied location - if an optional keyword is supplied, it also returns true if the locations share a parent with that keyword, or if either location is a child of the other and the other has that keyword.
Parameters
LocationakOtherLocation
CK Wiki Description
The other location to look at.
KeywordakKeyword=NONE
CK Wiki Description
if supplied, it uses the keyword to test if the locations share a parent with that keyword, or one of the locations has the keyword and is a parent of the other.
- Default:None
Examples
No human-generated examples found for this function.
Auto-Generated Example
Location myLocation__akOtherLocation
Keyword myKeyword__akKeyword
bool returnedValue = myLocation__toCallFunctionOn.IsSameLocation(myLocation__akOtherLocation, myKeyword__akKeyword)Related Pages
- Location
- Location.HasCommonParent(...)
- Location.IsChild(...)
