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

EquipItem

Makes an Actor equip an Item.

[top]Declaration

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

[top]Parameters

vaultmp::ID - the ID of the Actor
vaultmp::Base - the base ID of the Item to equip
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 unequip the Item

[top]Return value

Returns a vaultmp::State indicating the success.