API ConfigureWeaponGroup
From Vendetta Lua
ConfigureWeaponGroup
Definition:
ConfigureWeaponGroup(int id, table port_ids, function cb) -> nil
Description:
Configures one weapon group
Arguments:
id is number of group. 0-5 primary, 6-11 secondary and 12-17 tertiary trigger
ports_ids is list of ports active for that group (2-numweaponports)
cb function to call on completition (optional)
Example:
<source lang=lua>
-- enable port 1 and 2 for the primary trigger
ConfigureWeaponGroup(0, {2,3})
</source>