API ReplenishWeapon: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
ArielF (talk | contribs)
ArielF (talk | contribs)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== ReplenishWeapon ===
=== ReplenishWeapon ===
==== Definition: ====
==== Definition ====
ReplenishWeapon(int itemid, int x, func cb) -> nil
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.


==== Description: ====
See also [[API_ReplenishAll]] and [[API_RepairShip]].
Replenishes all ammunition if [[itemid]] is a ship. Unknown behaviour when it is not.
 
==== 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


The meaning of x is unknown. 1 seems to work as a value.


==== Arguments: ====
[[Category:Functions]]
* ''itemid'' [[itemid]] of ship or possibly weapon<br>
* ''x'' unknown, number 1 seems to work<br>
* ''cb'' function to be called once the transaction is complete

Latest revision as of 22:29, 16 June 2009

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