Background for Skyrim SE
Member of the MiscUtil script
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

  1. intformType

  2. ObjectReferenceCenterOn

  3. floatradius=0.0

  4. 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)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.