Background for Skyrim SE
Member of the MiscUtil script
Actor[]functionScanCellNPCs(ObjectReferenceCenterOn, floatradius=0.0, KeywordHasKeyword=NONE, boolIgnoreDead=true)NativeGlobal

Description

Documentation Comment

Scans the current cell of the given CenterOn for an actor within the given radius and returns an array for all actors that are
currently alive and (optionally) 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. ObjectReferenceCenterOn

  2. floatradius=0.0

  3. KeywordHasKeyword=NONE

  4. boolIgnoreDead=true


Examples

Auto-Generated Example

ObjectReference myObjectReference__CenterOn
float myFloat__radius
Keyword myKeyword__HasKeyword
bool myBool__IgnoreDead

Actor[] returnedValue = MiscUtil.ScanCellNPCs(myObjectReference__CenterOn, myFloat__radius, myKeyword__HasKeyword, myBool__IgnoreDead)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.