This site has been archived and made available for preservation purposes. No edits can be made.
AddItem
(Difference between revisions)
Return to current revision
-
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
-
-
[b][wiki="Value"]vaultmp::Value[/wiki][/b] - condition of the [wiki]Item[/wiki]
-
+
[b][wiki="Value"]vaultmp::Value[/wiki][/b] - the [wiki]Item condition[/wiki]
-
[h="2"] Return value [/h]
None.
[category]VaultMP interface[/category]
[category]Scripting functions[/category]
[category]Container functions[/category]