API GetAddonItemInfo

From Vendetta Lua
Jump to navigationJump to 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