GetRefsInCell

From GECK

A function added by the New Vegas Script Extender.

Description

Similar to using GetFirstRefInCell and GetNextRef, and follows the same syntax. Returns an array containing all the references in the specified cell(s), optional only of a specific form type. The optional cell depth argument specifies how many cells around that specified to scan. The include taken refs option will also return items that have been picked up. Added by NVSE 4.5.7.

Syntax

(array) GetRefsInCell Target:Cell FormTypeCode:int CellDepth:int IncludeTakenRefs:bool

Example

; To get all the actors in the GoodSprings prospector saloon
array_var Saloon_Refs

let Saloon_Refs := GetRefsInCell GSProspectorSaloonInterior, 200

See Also

Personal tools