Difference between revisions of "IsInLocation - ObjectReference"

imported>Jlundin
 
imported>Thingy Person
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>