This site has been archived and made available for preservation purposes. No edits can be made.
GetContainerItemCount
(Difference between revisions)
Return to current revision
-
Retrieves the current count of an [wiki]Item[/wiki] in a [wiki]Container[/wiki].
[h="2"] Declaration [/h]
[highlight=cpp]
VAULTSCRIPT vaultmp::UCount (*GetContainerItemCount)(vaultmp::ID, vaultmp::Base);
native GetContainerItemCount(ID, base);
[/highlight]
[h="2"] Parameters [/h]
[b][wiki="ID"]vaultmp::ID[/wiki][/b] - the ID of the [wiki]Container[/wiki]
-
-
[b][wiki="Base"]vaultmp::Base[/wiki][/b] - the base of the [wiki]Item[/wiki]. If zero, will return the total number of items
-
+
[b][wiki="Base"]vaultmp::Base[/wiki][/b] - the base of the [wiki]Item[/wiki]. If zero, will return the total number of all items
-
[h="2"] Return value [/h]
Returns a [wiki="UCount"]vaultmp::UCount[/wiki].
[category]VaultMP interface[/category]
[category]Scripting functions[/category]
[category]Container functions[/category]