API GetAddonItemInfo: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
split |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
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, otherwise nil | |||
| ret3_opt = true | |||
| notes = | |||
}} |
Latest revision as of 07:07, 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, otherwise nil |