This site has been archived and made available for preservation purposes. No edits can be made.
RemoveItem
(Difference between revisions)
Return to current revision
-
Removes an [wiki]Item[/wiki] from a [wiki]Container[/wiki].
[h="2"] Declaration [/h]
[highlight=cpp]
-
-
VAULTSCRIPT vaultmp::UCount (*RemoveItem)(vaultmp::ID, vaultmp::Base, vaultmp::UCount);
native RemoveItem(ID, base, count);
-
+
VAULTSCRIPT vaultmp::UCount (*RemoveItem)(vaultmp::ID, vaultmp::Base, vaultmp::UCount, vaultmp::State);
native RemoveItem(ID, base, count, Bool:silent);
-
[/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 ID of the [wiki]Item[/wiki] to remove
[b][wiki="UCount"]vaultmp::UCount[/wiki][/b] - count to remove
-
+
[b][wiki="State"]vaultmp::State[/wiki][/b] - determines whether, in this case a [wiki]Player[/wiki], will get notified of the action
-
[h="2"] Return value [/h]
Returns a [wiki="UCount"]vaultmp::UCount[/wiki]. This is the actual amount removed. It can be zero.
[category]VaultMP interface[/category]
[category]Scripting functions[/category]
[category]Container functions[/category]