GetInvRefsForItem

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns an array of Inventory References to objects that are instances of the specified Base Form in the calling container.

Syntax

[help]
(array) container.GetInvRefsForItem Type:baseform 

Example

array_var MyArray

let MyArray := PlayerREF.GetInvRefsForItem WeapNV9mmPistol

; ar_dump might, for example return:
; [ 0.000000 ] : 9mm Pistol (FF001373)
; [ 1.000000 ] : 9mm Pistol (FF001374)
; [ 2.000000 ] : 9mm Pistol (FF001375)

See Also