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

EquipItem

(Difference between revisions)
Return to current revision
  1.  
    Makes an [wiki]Actor[/wiki] equip an [wiki]Item[/wiki].
    [h="2"] Declaration [/h]
    [highlight=cpp]
  2. -
    VAULTSCRIPT vaultmp::State (*EquipItem)(vaultmp::ID, vaultmp::Base);
    native Bool:EquipItem(ID, base);
  3. +
    VAULTSCRIPT vaultmp::State (*EquipItem)(vaultmp::ID, vaultmp::Base, vaultmp::State, vaultmp::State);
    native Bool:EquipItem(ID, base, Bool:silent, Bool:stick);
  4.  
    [/highlight]
    [h="2"] Parameters [/h]
    [b][wiki="ID"]vaultmp::ID[/wiki][/b] - the ID of the [wiki]Actor[/wiki]
    [b][wiki="Base"]vaultmp::Base[/wiki][/b] - the base ID of the [wiki]Item[/wiki] to equip
  5. +
    [b][wiki="State"]vaultmp::State[/wiki][/b] - determines whether, in this case a [wiki]Player[/wiki], will get notified of the action
    [b][wiki="State"]vaultmp::State[/wiki][/b] - determines whether, in this case a [wiki]Player[/wiki], will be able to unequip the [wiki]Item[/wiki]
  6.  
    [h="2"] Return value [/h]
    Returns a [wiki="State"]vaultmp::State[/wiki] indicating the success.
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]
    [category]Actor functions[/category]