GetNumItems

From the Fallout3 GECK Wiki
Revision as of 05:02, 1 February 2013 by imported>WarMachineDD7 (Created page with "{{Function |origin = FOSE1 |summary = Returns the number of unique items in the reference's inventory. |name = GetNumItems |alias = GetNumObjects |returnType = int |refe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Fallout Script Extender.

Description

Returns the number of unique items in the reference's inventory.

Syntax

[help]
(int) ContainerRefID.GetNumItems 

Or:

(int) ContainerRefID.GetNumObjects

Example

int total
set total to player.GetNumItems