GetRefsInCell

Revision as of 04:42, 13 September 2014 by imported>Odessa (created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
< [[::Category:Functions|Category:Functions]]

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