API GetAddonItemInfo

From Vendetta Lua
Revision as of 07:07, 20 October 2011 by Draugath (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

GetAddonItemInfo

Definition

GetAddonItemInfo( number  itemid) ->  number  current,  number  maximum [,  string  name ]
Description

Returns current and maximum ammo if itemid is a weapon with ammo, or current/maximum armor if itemid is a ship.
Arguments

Type Name Description
number itemid itemid of an addon or ship.
Returns

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