API SaveShipLoadout: Difference between revisions

From Vendetta Lua
Jump to navigationJump to search
split
 
No edit summary
 
Line 1: Line 1:
=== SaveShipLoadout ===
=== SaveShipLoadout ===
'''Definition:'''
'''Definition:'''
SaveShipLoadout() -> ??
SaveShipLoadout(int itemid) -> {groups = {1 = group1 .. 18 = group18}, int ship, ports= {1 = port1 ..}, int shipcolor, int overlayindex}
<br>
<br>
'''Description:'''<br>
'''Description:'''<br>
save shiploadout? after a ClearLastShipLoadout() this function causes the buy back dialog to pop up again but the ship won't be rebought.. maybe it needs a loadout as arg
returns the loadout table for the specified ship itemid
<br>
'''Arguments:'''<br>
''itemid'' ship inventory item
<br>
'''Returns:'''<br>
''groups'' table containing the weapon group setup<br>
''group?'' group information. array indices correspondent to ports, is the value of an index set to true the port is enabled<br>
''ship'' type of ship<br>
''ports'' array indices correspondent to ports, value of index is the type of addon<br>
''shipcolor'' ship color 0-255<br>
''overlayindex'' ship livery
<br>
<br>

Latest revision as of 06:54, 22 January 2016

SaveShipLoadout

Definition: SaveShipLoadout(int itemid) -> {groups = {1 = group1 .. 18 = group18}, int ship, ports= {1 = port1 ..}, int shipcolor, int overlayindex}
Description:
returns the loadout table for the specified ship itemid
Arguments:
itemid ship inventory item
Returns:
groups table containing the weapon group setup
group? group information. array indices correspondent to ports, is the value of an index set to true the port is enabled
ship type of ship
ports array indices correspondent to ports, value of index is the type of addon
shipcolor ship color 0-255
overlayindex ship livery