API ReplenishWeapon: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
split
 
ArielF (talk | contribs)
Line 1: Line 1:
=== ReplenishWeapon ===
=== ReplenishWeapon ===
'''Definition:'''
==== Definition: ====
ReplenishWeapon() -> ??
ReplenishWeapon(int itemid, int x, func cb) -> nil
<br>
 
'''Description:'''<br>
 
not tested
==== Description: ====
<br>
Replenishes all ammunition if [[itemid]] is a ship. Unknown behaviour when it is not.
 
The meaning of x is unknown. 1 seems to work as a value.
 
==== Arguments: ====
* ''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

Revision as of 21:48, 16 June 2009

ReplenishWeapon

Definition:

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


Description:

Replenishes all ammunition if itemid is a ship. Unknown behaviour when it is not.

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

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