- Found in:
- PapyrusUtil
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
ObjectReferenceCenterOn
floatradius=0.0
KeywordHasKeyword=NONE
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)