GetWithinDistance

From the CreationKit Wiki
Jump to navigation Jump to search

This function checks if the calling ObjectReference is within the specified distance in units of the parameter ObjectReference, returning 1 if so or 0 otherwise. The distance must be less than the desired cap; if it's exactly equal, the condition still returns 0.