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

AddItem

(Difference between revisions)
Return to current revision
  1.  
    Adds an [wiki]Item[/wiki] to a [wiki]Container[/wiki].
    [h="2"] Declaration [/h]
    [highlight=cpp]
    VAULTSCRIPT void (*AddItem)(vaultmp::ID, vaultmp::Base, vaultmp::UCount, vaultmp::Value);
    native AddItem(ID, base, count, Float:value);
    [/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 add
    [b][wiki="UCount"]vaultmp::UCount[/wiki][/b] - count to add
  2. -
    [b][wiki="Value"]vaultmp::Value[/wiki][/b] - condition of the [wiki]Item[/wiki]
  3. +
    [b][wiki="Value"]vaultmp::Value[/wiki][/b] - the [wiki]Item condition[/wiki]
  4.  
    [h="2"] Return value [/h]
    None.
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]
    [category]Container functions[/category]