GetNextRefForItem
From GECK
A function added by the New Vegas Script Extender.
Contents
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
(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
- GetFirstRefForItem
- GetInvRefsForItem (to get an array with all inventory refs)