GetContainerInventoryCount

From the Fallout3 GECK Wiki
Revision as of 03:15, 28 March 2015 by imported>Jokerine (Created page with "=='''Description'''== Returns 1 if the specified container reference is '''not''' empty. =='''Syntax'''== ''[ContainerREF]''.GetContainerInventoryCount == 0/1 =='''Exampl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

Returns 1 if the specified container reference is not empty.

Syntax

[ContainerREF].GetContainerInventoryCount == 0/1

Examples

 if MyContainerREF.GetContainerInventoryCount == 0 ; if the container is empty
   MyContainerREF.AddItem Caps001 100
 endif
 if MyContainerREF.GetContainerInventoryCount >= 1 ; if the container has something
   Return
 EndIf

See Also