Difference between revisions of "API GetAddonItemInfo"
From Vendetta Lua
(split) |
|||
Line 1: | Line 1: | ||
− | + | {{Function | |
− | + | | name = GetAddonItemInfo | |
− | + | | desc = Returns current and maximum ammo if itemid is a weapon with ammo, or current/maximum armor if itemid is a ship. | |
− | + | | arg1_name = itemid | |
− | + | | arg1_type = number | |
− | Returns current and maximum ammo if itemid is a weapon with ammo, or current/maximum armor if itemid is a ship. | + | | arg1_desc = itemid of an addon or ship. |
− | + | | ret1_name = current | |
− | + | | ret1_type = number | |
− | + | | ret1_desc = Current ammo/armor, or -1. | |
− | + | | ret2_name = maximum | |
− | + | | ret2_type = number | |
− | + | | ret2_desc = Maximum ammo/armor, or -1. | |
− | + | | ret3_name = name | |
− | + | | ret3_type = string | |
+ | | ret3_desc = Name of weapon addon | ||
+ | | ret3_opt = true | ||
+ | | notes = | ||
+ | }} |
Revision as of 07:06, 20 October 2011
GetAddonItemInfo
Type | Name | Description |
---|---|---|
number | itemid | itemid of an addon or ship. |
Type | Name | Description |
---|---|---|
number | current | Current ammo/armor, or -1. |
number | maximum | Maximum ammo/armor, or -1. |
string | name | Name of weapon addon |