mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
1.2 KiB
1.2 KiB
layout | title | description | group | order | parent | mod | version | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wiki | HunterKiller Framework | Explains configs of the hunter-killer addon | framework | 5 | wiki | ace |
|
1. Array Info
HunterKiller needs a 2 element array to know what seats to run on. Each element is a tuple of a turret path and operating mode.
// NO_ACTIONS = 0
// OBSERVE = 1
// OVERRIDE = 2
// OBSERVE_AND_OVERRIDE = 3
2. Configs
{% raw %}
class CfgVehicles {
class MyTankA {
ace_hunterkiller = 1; // enable with default settings
};
class MyTankB {
ace_hunterkiller[] = {{{0}, 1}, {{0,0}, 3}}; // Default settings: (gunner can observe, commander can observe and override gunner)
};
class MRAP_03_hmg_base_F {
ace_hunterkiller[] = {{{0}, 1}, {{1}, 2}}; // e.g. vehicle where commander is [1] instead of [0,0]
};
};
{% endraw %}
2. Variables
this setVariable ["ace_hunterkiller", true]; // enable for vic using default settings
this setVariable ["ace_hunterkiller", [[[0], 1], [[0,0], 3]]]; // enable using custom array
this setVariable ["ace_hunterkiller", false]; // disabled
this setVariable ["ace_hunterkiller", []]; // disabled