GetNextRefForItem

From GECK

A function added by the New Vegas Script Extender.

Description

Returns the next entry in an array of temporary references to all objects of the specified type in the calling container, and should be called after GetFirstRefForItem, and during the same frame. Added by NVSE 3.1.

Syntax

(temp ref) container.GetNextRefForItem Type:object

Example

ref rTemp

let rTemp := PlayerREF.GetFirstRefForItem WeapNV9mmPistol

while rTemp != 0
    ; do something 
    let rTemp := PlayerREF.GetNextRefForItem WeapNV9mmPistol
loop

See Also

Personal tools