Difference between revisions of "GetItemCount"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Maturin
 
imported>Slserpent
Line 3: Line 3:




Returns the number of ObjectID in the actor's inventory.
Returns the number of ObjectID in the actor's inventory. It also works for containers.
 


<pre>
if (GetItemCount Gold001 <= 0)
  disable
endif
</pre>


[[Category: Functions]]
[[Category: Functions]]
[[Category: Object Functions]]
[[Category: Object Functions]]
[[Category: Condition Functions]]
[[Category: Condition Functions]]

Revision as of 15:55, 27 April 2006

Syntax:

 GetItemCount ObjectID


Returns the number of ObjectID in the actor's inventory. It also works for containers.

if (GetItemCount Gold001 <= 0)
  disable
endif