GetNextRefForItem

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

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

Syntax

[help]
(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