Background for Skyrim SE
Member of the Location script
boolfunctionIsChild(LocationakOther)Native

Description

Wiki Description

Returns if the other location is a child of this one. If they are the same location, the function returns false.

Documentation Comment

Returns whether the other location is a child of this one


Caveats

CK Wiki - Notes

  • This function will return true if the TamrielLocation is the calling location, even though the Parent location set on the passed-in (akOther) location's form is not set to TamrielLocation. This is because this function checks whatever is the parent location of the parent location of the passed-in location. To better explain this: RiverwoodLocation's parent location is WhiterunHoldLocation, while WhiterunHoldLocation's parent is TamrielLocation. This function will return true for either of them for RiverwoodLocation. So, if you want to know if a particular is a parent, do not use Tamriel unless you really want to know if Tamriel is the parent.

Parameters

  1. LocationakOther

    CK Wiki Description

    The other location to look at.


Examples

No human-generated examples found for this function.

Auto-Generated Example

Location myLocation__akOther

bool returnedValue = myLocation__toCallFunctionOn.IsChild(myLocation__akOther)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.