API ConfigureWeaponGroup: Difference between revisions
From Vendetta Lua
Jump to navigationJump to search
split |
No edit summary |
||
Line 1: | Line 1: | ||
{{Function | |||
| name = ConfigureWeaponGroup | |||
| desc = Configures one weapon group | |||
| arg1_name = id | |||
| arg1_type = number | |||
Configures one weapon group | | arg1_desc = number of group. 0-5 primary, 6-11 secondary and 12-17 tertiary trigger | ||
| arg1_opt = | |||
| arg2_name = port_ids | |||
| arg2_type = table | |||
| arg2_desc = list of ports active for that group (2-numweaponports) | |||
| arg2_opt = | |||
| arg3_name = cb | |||
'''Example:'''<br> | | arg3_type = function | ||
| arg3_desc = function to call on completion | |||
| arg3_opt = true | |||
| ret1_type = nil | |||
| notes = '''Example:'''<br> | |||
<source lang=lua> | <source lang=lua> | ||
-- enable port 1 and 2 for the primary trigger | -- enable port 1 and 2 for the primary trigger | ||
ConfigureWeaponGroup(0, {2,3}) | ConfigureWeaponGroup(0, {2,3}) | ||
</source> | </source> | ||
}} |
Latest revision as of 03:49, 19 October 2011
ConfigureWeaponGroup
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) |
Type | Name | Description |
---|---|---|
nil |
<source lang=lua> -- enable port 1 and 2 for the primary trigger ConfigureWeaponGroup(0, {2,3}) </source>