API PurchaseShipLoadout: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
split |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
=== PurchaseShipLoadout === | === PurchaseShipLoadout === | ||
'''Definition:''' | '''Definition:''' | ||
PurchaseShipLoadout( | PurchaseShipLoadout(function buybackdone_cb(boolean success), loadout) -> nil | ||
<br> | <br> | ||
'''Description:'''<br> | '''Description:'''<br> | ||
Buys ship presets as stored in [[ShipPresets]] table. Also sets weapon groups.<br> | |||
<br> | |||
'''Arguments:'''<br> | |||
''buybackdone_cb(boolean success)'' callback function that gets called when transation finished, takes one argument which is true in case of success false otherwise.<br> | |||
''loadout'' loadout as stored in [[ShipPresets]] table.<br> | |||
<br> | |||
'''Example:'''<br> | |||
<source lang="lua"> | |||
PurchaseShipLoadout(function(success) print(success) end, ShipPresets[1]) | |||
</source> | |||
<br> | <br> |
Latest revision as of 18:39, 17 February 2009
PurchaseShipLoadout
Definition:
PurchaseShipLoadout(function buybackdone_cb(boolean success), loadout) -> nil
Description:
Buys ship presets as stored in ShipPresets table. Also sets weapon groups.
Arguments:
buybackdone_cb(boolean success) callback function that gets called when transation finished, takes one argument which is true in case of success false otherwise.
loadout loadout as stored in ShipPresets table.
Example:
<source lang="lua">
PurchaseShipLoadout(function(success) print(success) end, ShipPresets[1])
</source>