Mod:Creation Kit/IsSameLocation - Location

Mod:Creation Kit/Category:Scripting Mod:Creation Kit/Category:Papyrus Member of: Mod:Creation Kit/Location Script

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.

Parameters

 * akOtherLocation: The other location to look at.
 * akKeyword: 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

Return Value
Returns if the locations are the same (or share a parent with the keyword, or is a child with the keyword)