API ConfigureWeaponGroup

From Vendetta Lua
Revision as of 03:49, 19 October 2011 by Draugath (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to 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:
<source lang=lua> -- enable port 1 and 2 for the primary trigger ConfigureWeaponGroup(0, {2,3}) </source>