API ConfigureWeaponGroup

From Vendetta Lua
Jump to: navigation, search

ConfigureWeaponGroup

Definition

ConfigureWeaponGroup( number  id,  table  port_ids [,  function  cb ]) ->  nil
Description

Configures one weapon group
Arguments

Type Name Description
number id number of group. 0-5 primary, 6-11 secondary and 12-17 tertiary trigger
table port_ids list of ports active for that group (2-numweaponports)
function cb function to call on completion (optional)
Returns

Type Name Description
nil
Notes

Example:

-- enable port 1 and 2 for the primary trigger
ConfigureWeaponGroup(0, {2,3})