- Found in:
- PapyrusUtil
ObjectReference[]functionScanCellObjects(intformType, ObjectReferenceCenterOn, floatradius=0.0, KeywordHasKeyword=NONE)NativeGlobal
Description
Documentation Comment
Scans the current cell of the given CenterOn for an object of the given form type ID within radius and returns an array for all that
and (optionally) also has the given keyword if changed from default none. Setting radius higher than 0.0 will restrict the
search distance from around CenterOn, 0.0 will search entire cell the object is in.
NOTE: Keyword searches seem a little unpredictable so be sure to test if your usage of it works before using the results.
Parameters
intformType
ObjectReferenceCenterOn
floatradius=0.0
KeywordHasKeyword=NONE
Examples
Auto-Generated Example
int myInt__formType
ObjectReference myObjectReference__CenterOn
float myFloat__radius
Keyword myKeyword__HasKeyword
ObjectReference[] returnedValue = MiscUtil.ScanCellObjects(myInt__formType, myObjectReference__CenterOn, myFloat__radius, myKeyword__HasKeyword)