API PurchaseShipLoadout

From Vendetta Lua
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>