API ReplenishWeapon

From Vendetta Lua
Revision as of 22:29, 16 June 2009 by ArielF (talk | contribs) (→‎ReplenishWeapon)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

ReplenishWeapon

Definition

ReplenishWeapon(int itemid, int x, func cb) -> nil

Description

Repairs the ship if itemid is a ship. Not tested on weapon IDs yet. The meaning of x is unknown. 1 seems to work as a value.

See also API_ReplenishAll and API_RepairShip.

Arguments

  • itemid itemid of ship or possibly weapon
  • x unknown, number 1 seems to work
  • cb function to be called once the transaction is complete