API ConfigureMultipleWeaponGroups

From Vendetta Lua
Jump to: navigation, search

ConfigureMultipleWeaponGroups

Definition

ConfigureMultipleWeaponGroups( table [,  function  cb ]) ->  nil
Description

configures weapon groups according to given tables.
Arguments

Type Name Description
table {table group1key1, table group1key2 ... table group1key6, table group2key1, table group2key2...}
group*key* Each table represents one group key. Key 1-6 map to the primary trigger, 7-12 secondary and 13-18 tertiary. Each index in the tables represents a port. Weapon ports start at index 2. Valid values for each port are nil or true.
function cb function to call on completion (optional)
Returns

Type Name Description
nil
Notes

Example:

-- enable port 1 for the primary trigger and port 2 for the secondary 
-- index 1 is the power cell port
ConfigureMultipleWeaponGroups{[1]={nil, true, nil}, [2]={nil, nil, true}}