GetFirstRefForItem

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns the first entry in an array of inventory references to all objects of the specified type in the calling container.

Syntax

[help]
(ref) container.GetFirstRefForItem Type:object 

Example

ref rTemp

let rTemp := PlayerREF.GetFirstRefForItem WeapNV9mmPistol

; rTemp might equal: '9mm Pistol (FF001376)'

See Also