This site has been archived and made available for preservation purposes. No edits can be made.

RemoveItem

Removes an Item from a Container.

[top]Declaration

Code cpp:
VAULTSCRIPT vaultmp::UCount (*RemoveItem)(vaultmp::ID, vaultmp::Base, vaultmp::UCount, vaultmp::State);
native RemoveItem(ID, base, count, Bool:silent);

[top]Parameters

vaultmp::ID - the ID of the Container
vaultmp::Base - the base ID of the Item to remove
vaultmp::UCount - count to remove
vaultmp::State - determines whether, in this case a Player, will get notified of the action

[top]Return value

Returns a vaultmp::UCount. This is the actual amount removed. It can be zero.