Difference between revisions of "IsInLocation - ObjectReference"
Jump to navigation
Jump to search
→Syntax
imported>Jlundin |
imported>Thingy Person (→Syntax) |
||
Line 8: | Line 8: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
bool Function IsInLocation(Location akLocation) | bool Function IsInLocation(Location akLocation) | ||
Location currLoc = GetCurrentLocation() | |||
if currLoc == None | |||
return false | |||
else | |||
return akLocation.IsChild(currLoc) || currLoc == akLocation | |||
endif | |||
endFunction | |||
</source> | </source> | ||