Difference between revisions of "GetContainerInventoryCount"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Jokerine
(Created page with "=='''Description'''== Returns 1 if the specified container reference is '''not''' empty. =='''Syntax'''== ''[ContainerREF]''.GetContainerInventoryCount == 0/1 =='''Exampl...")
 
imported>Pintocat
m (for search purposes added word count)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
=='''Description'''==
=='''Description'''==


Returns 1 if the specified container reference is '''not''' empty.
Used to check if a container has a specific amount (count) of items in it.


=='''Syntax'''==
=='''Syntax'''==


  ''[ContainerREF]''.GetContainerInventoryCount == 0/1
  ''[ContainerREF]''.GetContainerInventoryCount ''amount''


=='''Examples'''==
=='''Examples'''==

Latest revision as of 12:06, 26 January 2017

Description[edit | edit source]

Used to check if a container has a specific amount (count) of items in it.

Syntax[edit | edit source]

[ContainerREF].GetContainerInventoryCount amount

Examples[edit | edit source]

 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[edit | edit source]