GetFirstRefForItem

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 the first entry in an array of temporary references to all objects of the specified type in the calling container. Added by NVSE 3.1.

Syntax

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

Example

ref rTemp

let rTemp := PlayerREF.GetFirstRefForItem WeapNV9mmPistol

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

See Also