API GetActiveShipWeaponGroup

From Vendetta Lua
Jump to: navigation, search

GetActiveShipWeaponGroup

Definition:
GetActiveShipWeaponGroup(int id) -> table group
Description:
return which ports are enabled in the provided group
Arguments:
id id of weapon group correspondents to group key[0-5] + (trigger group[0-2] * 6)
Returns:
port table where the indexes are the port ids and values bools that are true when the port is active
Example:

GetActiveShipWeaponGroup(6) -> {2=true 3=true}

6 -> 6 % 6 = 1 R 0 thus 6 represents first group key and and second trigger group. port 2 and 3 are active for example this could be the 2 s ports on a vult