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

UnequipItem

Makes an Actor unequip an Item.

[top]Declaration

Code cpp:
VAULTSCRIPT vaultmp::State (*UnequipItem)(vaultmp::ID, vaultmp::Base, vaultmp::State, vaultmp::State);
native Bool:UnequipItem(ID, base, Bool:silent, Bool:stick);

[top]Parameters

vaultmp::ID - the ID of the Actor
vaultmp::Base - the base ID of the Item to unequip
vaultmp::State - determines whether, in this case a Player, will get notified of the action
vaultmp::State - determines whether, in this case a Player, will be able to equip the Item

[top]Return value

Returns a vaultmp::State indicating the success.