API PurchaseShipLoadout

From Vendetta Lua
Revision as of 18:39, 17 February 2009 by Mick (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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>