GetInvRefsForItem

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the New Vegas Script Extender.

Description

Returns an array of temporary references to objects of the specified type in the calling container. Added by NVSE 4.5.6.

Syntax

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

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