Turret Config Reference: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (clarified animationSourceX)
m (Some wiki formatting)
 
(84 intermediate revisions by 17 users not shown)
Line 1: Line 1:
{{Stub}}
{{ConfigPage|start}}
{{ofp}} used an optional turret class for some, few, models.


=Introduction=
The next {{arma}} titles use a '''Turrets''' (plural) class.


=A=
Generally, there is only a single "MainTurret" in the turrets class of any model that wants to have one. Or put another way, any model that has any turrets at all, will have a MainTurret class plus additionals if any.


== animationSourceBody ==
This (often empty) Turrets class is embedded in the class heirarchy of many generic base models. A generic base model == Tank eg. Ie, a generic class that all real tanks inherit.
[[TokenNameValueTypes|String]]<br>
For the given tank (a T80 eg), it is expected, that values will be filled into the (often empty) Turrets class already provided.
'''Description:''' Creates a new animation source for use with this turrets body in the cfgModels class.
Some model families (HMMWV_Base eg) flesh out this turrets class for all their children, others do not.
animationSourceBody="mainTurret";
The principle being, that many child models will inherit a Turrets class whether they want it or not.
 
As a consequence, '''many''' models that do not have turrets require the following:
<syntaxhighlight lang="cpp">
class Turrets{};
</syntaxhighlight>
 
I.e, their parent (or parents) have inherited a Turret class that needs to be ignored (for this model and it is children). It is good practice to put the above statement in your model (if you dont use turrets).
A later change by you to a 'better' (&trade;) parent might introduce unexpected errors if that parent has a turrets class and you didn't want one anyway.
 
 
== Creating ==
 
Creating any turret (singular) class for your model involves the use of:
 
<syntaxhighlight lang="cpp">
class CfgVehicles
{
class SomeModel // AllVehicles e.g
{
class NewTurret; // derive from your base base base class
};
 
class MyGreatModel : SomeModel // AllVehicles e.g
{
class Turrets
{
class MainTurret : NewTurret // build (or overwrite) a completely new turret
{
// ...
};
 
class MoreTurrets : NewTurret // if any
{
// ...
};
};
};
};
</syntaxhighlight>
 
AllVehicles is the lowest possible base class where you can obtain a pristine NewTurret class.
It would be an unusual model to inherit directly from {{hl|AllVehicles}} (you might derive NewTurret from there, again, unusual), but you are unlikely to INHERIT {{hl|AllVehicles}} directly.
More likely, you have got some other generic class that fills in much of the donkey work. For the purposes of obtaining a NewTurret, it matters diddly squat where it comes from. ALL models have one. Used, or not.
 
 
== Inheriting ==
 
There are of course, derivations on the theme, a.k.a:
<syntaxhighlight lang="cpp">
class CfgVehicles
{
class Ship;
class Boat : Ship
{
class Turrets
{ // your model has to inherit from somewhere!
class NewTurret; // create an entirely new animal OR
class MainTurret; // twiddle what's already there IF there
};
};
 
class MyGreatModel : Boat
{
class Turrets : Turrets
{
class MainTurret : NewTurret // create an entirely new one OR
class MainTurret : MainTurret // just twiddle a few things from the generic class
{
// ...
};
};
};
};
</syntaxhighlight>
 
The bottom line is that, ultimately, your turret will attach a '''NewTurret class''' (whether inherited, or, created right then)
 
 
'''ALL''' models, ultimately, derive their turret(s), from this one, singular, NewTurret class.


== animationSourceGun ==
The NewTurret class is embedded in '''ALL''' Vehicle classes (via the bin/config.bin). It can be used, or ignored, but it is unconditially there.
[[TokenNameValueTypes|String]]<br>
'''Description:''' Creates a new animation source for use with this turrets gun in the cfgModels class.
animationSourceGun="mainGun";


== animationSourceHatch ==
The following alphabetical sort describes all values that can be set in YOUR derived NewTurret (eg your MainTurret)
[[TokenNameValueTypes|String]]<br>
'''Description:''' Creates a new animation source for use with this turrets gunner hatch in the cfgModels class.
animationSourceHatch="hatchGunner";


=B=


== body ==
== Notes ==
[[TokenNameValueTypes|String]]<br>
'''Description:''' The horizontaly moving selection of the turret.
body="mainTurret";


=C=
* In the following list, the default value is declared. Ie the value that comes from the (sometimes inherited) NewTurret class. There should be no requirement to restate a default value unless the class you inherit from has done so.
* Some values cannot be known by the NewTurret class and are defaulted to empty. They need you, to fill them in. They are of course string values pertaining to YOUR model.


== commanding ==
Very fortunately, these values (e.g memory points), are almost universal. It is a strange and wonderful model indeed that strays from the standard Czech names for these points.
[[TokenNameValueTypes|Integer]]<br>
'''Description:''' The commanding number defines who is in command of the vehicle. The turret with the highest number will be the vehicles commander. If he dies, the crew of the turret with the nearest smaller number will take over command, etc.
commanding=1;


=E=
In General, an inherited model will have already had these standard Czech names supplied by the parent.
So at best, they are *generally* not required to be stated, and at worst, using the 'example' name supplied in the alpabetic list below is a fairly sage bet.
(if you have not got an OctoVez in your model, it's your problem, isn't it)


== ejectDeadGunner ==
[[TokenNameValueTypes|Boolean]]<br>
'''Description:''' If true, the gunners body will be ejected when killed.
ejectDeadGunner=0;


=F=
== Alphabetic ==


== forceHideGunner ==
{{ConfigPage|abc}}
[[TokenNameValueTypes|Boolean]]<br>
'''Description:''' If true, the gunner will not be able to turn out.
forceHideGunner=0;


=G=
=== A ===


== gun ==
==== animationSourceBody = "mainTurret" ====
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes|String]]<br>
gun="mainGun";
'''controller''' source name for use with this turret's body in the cfgModels class.


'''Description:''' The verticaly moving selection of the turret. This is, in most cases, the gun itself.
<syntaxhighlight lang="cpp">
class CfgModels
{
class YourModel : InheritedFromSomeWhere
{
class Animations : Animations
{
class MainTurret
{
type = "rotationY";
source = "mainTurret"; // controller that provides input above
selection = "OtocVez"; // name of the used skeleton bone
axis = "OsaVeze"; // name of the model's axis
};
};
};
};
</syntaxhighlight>


== gunnerAction ==
==== animationSourceGun = "mainGun" ====
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes|String]]<br>
'''Description:''' The name of the animation the gunner is using while turned out.
Creates a new animation source for use with this turret's gun in the cfgModels class.
gunnerAction="";


== gunBeg ==
==== animationSourceHatch = "hatchGunner" ====
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes|String]]<br>
'''Description:''' The name of the barrels rear point in the model.
Creates a new animation source for use with this turret's gunner hatch in the cfgModels class.
gunBeg="konec hlavne";


== gunnerCompartements ==
{{ArgTitle|4|animationSourceElevation {{=}} ""|{{GVI|arma3|1.00}}}}
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes|String]]<br>
'''Description:''' Unknown.
Creates a new animation source to be used for raising/lowering the turret.
gunnerCompartements="Compartement1";


== gunEnd ==
{{ArgTitle|4|animationSourceCamElev {{=}} ""|{{GVI|arma3|1.00}}}}
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes|String]]<br>
'''Description:''' The name of the barrels front point in the model.
Creates animation for camera movement which is independent from the main cannon (see artillery guns)
gunBeg="usti hlavne";


== gunnerInAction ==
{{ArgTitle|4|animationSourceStickX {{=}} ""|{{GVI|arma3|1.00}}}}
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes|String]]<br>
'''Description:''' The name of the animation the gunner is using while turned in.
Creates animation transferring controller input in X axis. Useful for i.e. joystick in turrets
gunnerInAction="";


== gunnerName ==
{{ArgTitle|4|animationSourceStickY {{=}} ""|{{GVI|arma3|1.00}}}}
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes|String]]<br>
'''Description:''' Allows to use a custom string for the name of the turret.
Creates animation transferring controller input in Y axis. Useful for i.e. joystick in turrets
gunnerName="Rear Gunner";


== gunnerOpticsModel ==
=== B ===
 
==== body = "mainTurret" ====
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes|String]]<br>
'''Description:''' The optics model used when gunner is not turned out.
This defines the animation to be used for the horizontally moving selection of the turret and must be a model.cfg's '''animation classname'''.
gunnerOpticsModel="\ca\Tracked\optika_tank_gunner";
The name of the source for the animation is defined via [[Turret_Config_Reference#animationSourceBody.3D_.22mainTurret.22|animationSourceBody]].


== gunnerForceOptics ==
=== C ===
[[TokenNameValueTypes|Boolean]]<br>
'''Description:''' Forces the gunner to use optics while turned in.
gunnerForceOptics=1;


== gunnerOutOpticsModel ==
{{ArgTitle|4|cameraDir {{=}} ""|{{GVI|arma3|1.00}}}}
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes|String]]<br>
'''Description:''' The optics model used when gunner is turned out.
unknown. used in conjunction with artillery turrets with detached camera elevation from gun elevation
gunnerOutOpticsModel="\ca\Weapons\optika_empty";
 
==== canHideGunner = true ====
[[TokenNameValueTypes#Boolean|Boolean]]
 
==== castGunnerShadow = false ====
[[TokenNameValueTypes#Boolean|Boolean]]
 
==== class GunFire: WeaponFireGun{} ====
 
==== class GunClouds: WeaponCloudsGun{} ====
 
==== class MGunClouds: WeaponCloudsMGun{} ====
These all inherit the default external class.
 
==== class HitPoints ====
<syntaxhighlight lang="cpp">
class HitPoints
{
class HitTurret
{
armor = 0.8;
material = 51;
name = "turret";
visual = "turret";
passThrough = 1;
};
 
class HitGun
{
armor = 0.6;
material = 52;
name = "gun";
visual = "gun";
passThrough = 1;
};
};
</syntaxhighlight>
 
==== class Turrets{} ====
no embedded turret(s)
 
==== class ViewGunner ====
<syntaxhighlight lang="cpp">
class ViewGunner
{
initAngleX = 5;
minAngleX = -85;
maxAngleX = 85;
initAngleY = 0;
minAngleY = -150;
maxAngleY = 150;
initFov = 0.7;
minFov = 0.42; // FOV of 0.4 is considered as 1x magnification by RSC displays
maxFov = 0.85;
};
</syntaxhighlight>
 
==== class ViewOptics ====
<syntaxhighlight lang="cpp">
class ViewOptics
{
initAngleX = 0;
minAngleX = -30;
maxAngleX = 30;
initAngleY = 0;
minAngleY = -100;
maxAngleY = 100;
initFov = 0.3; // baseline FOV 0.4 / optic FOV 0.3 = x1.33 magnification
minFov = 0.07; // baseline FOV 0.4 / optic FOV 0.07 = x5.7 magnification
maxFov = 0.35; // baseline FOV 0.4 / optic FOV 0.35 = x1.14 magnification
};
</syntaxhighlight>
 
==== commanding = 1 ====
[[TokenNameValueTypes#Integer|Integer]]<br>
The commanding number defines who is in command of the vehicle. The turret with the highest number will be the vehicles commander.
If he dies, the crew of the turret with the nearest smaller number will take over command, etc.
 
=== D ===
 
==== dontCreateAI = false ====
[[TokenNameValueTypes#Boolean|Boolean]]
 
Do not create AI in this turret
 
=== E ===
 
==== elevationMode = 3 ====
[[TokenNameValueTypes#Integer|Integer]].
 
0 - Default, manual elevation by mouse<br>
1 - Manual elevation by elevUp/Down actions (Page Up/Page Down with default keybinds)<br>
2 - Auto elevation to the aimed position<br>
3 - {{GVI|arma3|1.00|size= 0.75}} Switchable between manual elevation (1) and auto elevation (2) - with elevationMode = 3 the gun barrel is elevated via the page-up and page-down keys
 
==== ejectDeadGunner = false ====
[[TokenNameValueTypes#Boolean|Boolean]]<br>
If true, the gunner's body will be ejected when killed.
 
==== elevationAnimSourceSpeed = 1.0f ====
[[TokenNameValueTypes#|Float]]<br>
Speed of rising/lowering turret. See [[#animationSourceElevation_.3D_.22.22|animationSourceElevation]]
 
=== F ===
 
==== forceHideGunner = false ====
[[TokenNameValueTypes#Boolean|Boolean]]<br>
If true, the gunner will not be able to turn out.
 
=== G ===
 
==== gun = "mainGun" ====
[[TokenNameValueTypes#String|String]]<br>
This defines the animation to be used for the verticaly moving selection of the turret and must be a model.cfg's '''animation classname'''. The name of the source for the animation is defined via [[Turret_Config_Reference#animationSourceGun.3D_.22mainGun.22|animationSourceGun]].
 
==== gunAxis = "" ====
[[TokenNameValueTypes#String|String]]<br>
'''Description:''' Axis selectionname in MemoryLOD (for the gun axis, ie mouse up and down input).
gunAxis = "OsaHlavne";
 
==== gunBeg = "" ====
[[TokenNameValueTypes#String|String]]<br>
The name of the barrel's front point in the model.
'''example''': gunBeg = "usti hlavne";
 
==== gunEnd = "" ====
[[TokenNameValueTypes|String]] The name of the barrel's rear point in the model.
'''example''': gunEnd = "konec hlavne";
 
==== gunnerAction = "" ====
[[TokenNameValueTypes#String|String]] The name of the animation the gunner is using while turned out.
 
==== gunnerCompartments = "Compartment1" ====
[[TokenNameValueTypes#String|String]]<br>
Only units sharing a compartment can switch seats.
 
==== gunnerFireAlsoInInternalCamera = true ====
[[TokenNameValueTypes#Boolean|Boolean]]
 
==== gunnerForceOptics = true ====
[[TokenNameValueTypes#Boolean|Boolean]]<br>
Forces the gunner to use optics while turned in.
 
==== gunnerGetInAction = "" ====
[[TokenNameValueTypes#String|String]]<br>
Name of animation used for Get In action


== gunnerOutForceOptics ==
==== gunnerGetOutAction = "" ====
[[TokenNameValueTypes|Boolean]]<br>
[[TokenNameValueTypes#String|String]]<br>
'''Description:''' Forces the gunner to use optics while turned out.
Name of animation used for Get Out action
gunnerForceOutOptics=1;


== gunnerUsesPilotView ==
==== gunnerInAction = "" ====
[[TokenNameValueTypes|Boolean]]<br>
[[TokenNameValueTypes#String|String]]<br>
'''Description:''' The gunner will use the View LOD - Pilot if true.
The name of the animation the gunner is using while turned in.
gunnerUsesPilotView=1;


=H=
==== gunnerName = "Gunner" ====
[[TokenNameValueTypes#String|String]]<br>
Allows to use a custom string for the name of the turret.


== hasGunner ==
'''example''' gunnerName = "Rear Gunner";
[[TokenNameValueTypes|Boolean]]<br>
'''Description:''' If true, the turret will be manned when the vehicle is placed in the editor.
hasGunner=1;


== hideWeaponsGunner ==
==== gunnerNotSpawned = false ====
[[TokenNameValueTypes|Boolean]]<br>
[[TokenNameValueTypes#Boolean|Boolean]]<br>
'''Description:''' If true, the gunners weapons (his rifle) will not be displayed.
Used in {{arma3}} vanilla for Copilot turrets. Difference between gunnerNotSpawned and dontCreateAI is unknown.
hideWeaponsGunner=1;


=I=
// Parameter doesn't exist in engine


== InGunnerMayFire ==
==== gunnerOpticsColor[] = { 0, 0, 0, 1 } ====
[[TokenNameValueTypes|Boolean]]<br>
[[TokenNameValueTypes#Array|Array]]
'''Description:''' If true, the gunner will be able to fire the turrets weapons while inside the vehicle.
inGunnerMayFire=1;


== initElev ==
==== gunnerOpticsEffect[] = {} ====
[[TokenNameValueTypes|Float]]<br>
[[TokenNameValueTypes#Array|Array]]<br>
'''Description:''' The initial elevation of the gun.
Defines the Effects used for the optical view when turned in. Effects correspond to classes defined in CfgOpticsEffect.
initElev=0;


== initTurn ==
'''example''' gunnerOpticsEffect[] = { "TankGunnerOptics1", "OpticsCHAbera1" };
[[TokenNameValueTypes|Float]]<br>
'''Description:''' The initial turn of the turret, unit is deegres
InitTurn=0;


=L=
==== gunnerOpticsModel = "" ====
[[TokenNameValueTypes#String|String]]<br>
The optics model used when gunner is not turned out.


== lockWhenDriverOut ==
'''example''': gunnerOpticsModel = "\ca\Tracked\optika_tank_gunner";
[[TokenNameValueTypes|Boolean]]<br>
'''Description:''' If true, the turret can not be moved while the driver is turned out.
lockWhenDriverOut=0;


=M=
==== gunnerOutFireAlsoInInternalCamera = true ====
[[TokenNameValueTypes#Boolean|Boolean]]


== magazines[] ==
==== gunnerOutForceOptics = false ====
[[TokenNameValueTypes|Array]]<br>
[[TokenNameValueTypes#Boolean|Boolean]]<br>
'''Description:''' An array made of all magazines this turret is equipped with.
Forces the gunner to use optics while turned out.
magazines[]={"BigGunMagazine","SmallGunMagazine"};


== maxElev ==
==== gunnerOutOpticsColor[] = { 0, 0, 0, 1 } ====
[[TokenNameValueTypes|Float]]<br>
[[TokenNameValueTypes#Array|Array]]
'''Description:''' The maximum elevation of the gun.
maxElev=20;


== maxHorizontalRotSpeed ==
==== gunnerOutOpticsEffect[] = {} ====
[[TokenNameValueTypes|Float]]<br>
[[TokenNameValueTypes#Array|Array]]
'''Description:''' The maximum horizontal speed of the turret, unit unknown.
maxHorizontalRotSpeed=1.200000;


== maxTurn ==
==== gunnerOutOpticsModel = "" ====
[[TokenNameValueTypes|Float]]<br>
[[TokenNameValueTypes|String]]<br>
'''Description:''' The maximum turn of the turret, unit is deegres.
'''Description:''' The optics model used when gunner is turned out.
  maxTurn=+360;
  gunnerOutOpticsModel = "\ca\Weapons\optika_empty";


== maxVerticalRotSpeed ==
==== gunnerOutOpticsShowCursor = false ====
[[TokenNameValueTypes|Float]]<br>
[[TokenNameValueTypes#Boolean|Boolean]]
'''Description:''' The maximum vertical speed of the turret, unit unknown.
maxVerticalRotSpeed=1.200000;


== memoryPointsGetInGunner ==
{{ArgTitle|4|gunnerType {{=}} ""|{{GVI|arma3|1.00}}}}
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes|String]]<br>
'''Description:''' The name of the get in-point selection for this turret, located in the Memory-LOD of the model.
'''Description:''' The soldier class that is the default crew for this turret. Overwrites the class defined in the {{hl|CfgVehicles}}'s {{hl|1= crew = "";}} token
  memoryPointsGetInGunner="pos gunner";
  gunnerType = "O_Soldier_F";


== memoryPointsGetInGunnerDir ==
==== gunnerLeftHandAnimName = "" ====
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes|String]]<br>
'''Description:''' The name of the dir-point selection for this turret, located in the Memory-LOD of the model. It is used to make the gunner face a special direction while entering the vehicle.
'''Description:''' Defines bone for IK animations for gunner left hand
memoryPointsGetInGunnerDir="pos gunner dir";


== memoryPointGun ==
==== gunnerRightHandAnimName = "" ====
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes|String]]<br>
'''Description:''' The point in the model where the MG fire of this turret will come from.
'''Description:''' Defines bone for IK animations for gunner right hand
memoryPointGun="machineGun";


== minElev ==
==== gunnerUsesPilotView = false ====
[[TokenNameValueTypes#Boolean|Boolean]]<br>
The gunner will use the View LOD - Pilot if true.
 
=== H ===
 
==== hasGunner = true ====
[[TokenNameValueTypes#Boolean|Boolean]]<br>
When false, AI and players can't enter the turret from the outside. Players can switch to the turret from inside the vehicle however (if there is an enterable position with the same Compartment).
 
==== hideWeaponsGunner = true ====
[[TokenNameValueTypes#Boolean|Boolean]]<br>
If true, the gunners weapons (his rifle) will not be displayed.
 
=== I ===
 
==== InGunnerMayFire = true ====
[[TokenNameValueTypes#Boolean|Boolean]]<br>
If true, the gunner will be able to fire the turrets weapons while inside the vehicle.
 
==== initElev = 0 ====
[[TokenNameValueTypes#Degrees|Degrees]]<br>
The initial elevation of the gun.
 
==== initTurn = 0 ====
[[TokenNameValueTypes#Degrees|Degrees]]<br>
The initial turn of the turret.
 
==== isCopilot = 0 ====
 
==== isPersonTurret = 2 ====
Value 1 gives a working turret but only accessible from the inside while 2 enables a person to get into the turret from outside.
 
=== L ===
 
==== lockWhenDriverOut = false ====
[[TokenNameValueTypes#Boolean|Boolean]]<br>
If true, the turret can not be moved while the driver is turned out.
 
==== lockWhenVehicleSpeed = -1 ====
[[TokenNameValueTypes#Integers|Integer]]<br>
Vehicle speed (in meter per second) at which point the turret will automatically return to a neutral pose (does not match up with "initElev" or "initTurn"). Value of -1 means it will never lock.
 
==== LODTurnedIn = -1 ====
[[TokenNameValueTypes#Integers|Integer]]<br>
Defines the LOD that is to be used when the Gunner is turned in.
Value = -1 seems to default to the standard LOD (for Turret's that is Gunnerview).
Note that LODTurnedIn = VIEW_GUNNER; or similar is not valid - unless you use a #define (see Arma 3 Samples to see how defines work).
 
Value: -1 or 0 = Default LOD; 1 = first resolution LOD; 1000 = Gunnerview; 1100 = Pilotview; 1200 = Cargoview.
 
The View_Commander LOD is the default for turrets that have "primaryObserver = 1;" and "primaryGunner = 0;" in their config. The View_Commander LOD cannot be accessed manually in any other way.
 
==== LODTurnedOut = -1 ====
[[TokenNameValueTypes#Integers|Integer]]<br>
Defines the LOD that is to be used when the Gunner is turned out. The same rules as with LODTurnedIn apply.
 
==== LODOpticsIn = -1 ====
[[TokenNameValueTypes#Integers|Integer]]<br>
Defines the LOD that is to be used when the Gunner is turned in and in optics mode.
Value = -1 or 0 default to the standard LOD (for Turret's that is Gunnerview).
Note that LODTurnedIn = VIEW_GUNNER; or similar is not valid - unless you use a #define (see Arma 3 Samples to see how defines work).
 
Value: -1 or 0 = Default LOD; 1 = first resolution LOD; 1000 = Gunnerview; 1100 = Pilotview; 1200 = Cargoview.
 
The View_Commander LOD is the default for turrets that have "primaryObserver = 1;" and "primaryGunner = 0;" in their config. The View_Commander LOD cannot be accessed manually in any other way.
 
==== LODOpticsOut = -1 ====
[[TokenNameValueTypes#Integers|Integer]]<br>
Defines the LOD that is to be used when the Gunner is turned out & optics in. The same rules as with LODOpticsIn apply.
 
=== M ===
 
==== magazines[] = {} ====
[[TokenNameValueTypes|Array]]<br>
An array made of all magazines this turret is equipped with.
 
'''example''' magazines[] = { "BigGunMagazine", "SmallGunMagazine" };
 
==== maxElev = 20 ====
[[TokenNameValueTypes#Degrees|Degrees]] The maximum elevation of the gun.
 
==== maxHorizontalRotSpeed = 1.2 ====
[[TokenNameValueTypes|Float]]<br>
[[TokenNameValueTypes|Float]]<br>
'''Description:''' The minimal elevation of the gun.
The maximum horizontal speed of the turret.
minElev=-4;
 
maxHorizontalRotSpeed = "((360/X)/45)";
 
X = time in seconds to turn 360°


== minTurn ==
==== maxTurn = 360 ====
[[TokenNameValueTypes|Float]]<br>
[[TokenNameValueTypes#Degrees|Degrees]] The maximum turn of the turret, unit is deegres.
'''Description:''' The minimal turn of the turret, unit is deegres.
 
minTurn=-360;
==== maxVerticalRotSpeed = 1.2 ====
[[TokenNameValueTypes|Float]] The maximum vertical speed of the turret, unit unknown. Bigger value - bigger rotation speed
 
==== memoryPointsGetInGunner = "" ====
[[TokenNameValueTypes#Strings|String]] The name of the get in-point selection for this turret, located in the Memory-LOD of the model.
'''example''': memoryPointsGetInGunner = "pos gunner";
 
==== memoryPointsGetInGunnerDir = "" ====
[[TokenNameValueTypes#Strings|String]]<br>
The name of the dir-point selection for this turret, located in the Memory-LOD of the model. It is used to make the gunner face a special direction while entering the vehicle.
memoryPointsGetInGunnerDir = "pos gunner dir";
 
==== memoryPointGun = "" ====
[[TokenNameValueTypes#Strings|String]]<br>
The point in the model where the MG fire of this turret will come from.
memoryPointGun = "machineGun";
 
==== memoryPointGunnerOptics = "" ====
[[TokenNameValueTypes#String|String]]<br>
The point in the model that defines gunner view point.
'''example''': memoryPointGunnerOptics = "gunnerview";
 
==== memoryPointGunnerOutOptics = "" ====
[[TokenNameValueTypes#String|String]]
 
==== minElev = -4 ====
[[TokenNameValueTypes#Degrees|Degrees]]<br>
The minimal elevation of the gun.
 
==== minTurn = -360 ====
[[TokenNameValueTypes#Degrees|Degrees]]<br>
The minimal turn of the turret, unit is degrees.
 
==== minCamElev = -90 ====
[[TokenNameValueTypes#Degrees|Degrees]]<br>
The minimal elevation of the camera, unit is degrees. Used together with [[Turret_Config_Reference#elevationMode_.3D_3|elevationMode]] on artillery vehicles
 
==== maxCamElev = 90 ====
[[TokenNameValueTypes#Degrees|Degrees]]<br>
The maximum elevation of the camera, unit is degrees. Used together with [[Turret_Config_Reference#elevationMode_.3D_3|elevationMode]] on artillery vehicles
 
==== missileBeg = "spice rakety" ====
[[TokenNameValueTypes#Strings|String]]
 
==== missileEnd = "konec rakety" ====
[[TokenNameValueTypes#Strings|String]]
 
=== O ===
 
==== outGunnerMayFire = false ====
[[TokenNameValueTypes#Boolean|Boolean]]<br>
If true, the gunner will be able to fire and move(!) the turret while turned out.
 
=== P ===
 
==== primary= 1 ====
Unknown: ??
 
==== primaryGunner = true ====
[[TokenNameValueTypes#Boolean|Boolean]]<br>
True if this turret is used by the primary gunner, false else.
{{Feature|warning|
There can be only ONE primary gunner on a vehicle, else you might often get a CTD.<br>
Using [[addMagazine]] will add to the primaryGunner weapons. See [[addMagazineTurret]] ({{arma3}}) for other turrets.
}}
 
==== primaryObserver = false ====
[[TokenNameValueTypes#Boolean|Boolean]]<br>
True if this turret is used by the primary observer (e.g. tank commander), false else.
 
==== proxyType = "CPGunner" ====
[[TokenNameValueTypes#String|String]]<br>
The proxy type of the turrets gunner, this may be CPGunner or CPCommander. The proxies have to be named according to this setting, so either "proxy:Gunner.XX" or "proxy:Commander.XX".
 
==== proxyIndex = 1 ====
[[TokenNameValueTypes|Integer]]<br>
The proxy index of the turrets gunner. If your proxyType is "CPGunner" and proxyIndex = 1, the proxyname must be "proxy:Gunner.01", etc.
 
==== playerPosition = 1 ====
[[TokenNameValueTypes|Integer]]<br>
Player position, used for sound controller "playerPos" - see {{Link|Arma 3: Sound: SoundControllers}}
 
=== S ===


=O=
==== selectionFireAnim = "" ====
[[TokenNameValueTypes#Strings|String]]


== outGunnerMayFire ==
==== showgunneroptics ====
[[TokenNameValueTypes|Boolean]]<br>
[[TokenNameValueTypes|Boolean]]<br>
'''Description:''' If true, the gunner will be able to fire the turrets weapons while turned out.
'''Description:''' ???
  outGunnerMayFire=0;
  showgunneroptics = true;


=P=
//Doesn't exist in engine


== primaryGunner ==
==== showAsCargo = false ====
[[TokenNameValueTypes|Boolean]]<br>
[[TokenNameValueTypes#Boolean|Boolean]]<br>
'''Description:''' True if this turret is used by the primary gunner, false else.
If true, turret is considered as Cargoposition
primaryGunner=1;
 
==== soundServo[] = {"",0.003162,1.0} ====
[[TokenNameValueTypes|Array]]<br>
Sound of the turrets servo, this is played whenever the turret is moving.
 
==== stabilizedInAxes = 3 ====
[[TokenNameValueTypes#Integer|Integer]]<br>
0 - No stabilisation<br>
1 - Gun elevation stabilised<br>
2 - Turret traverse stabilised<br>
3 - Both stabilised<br>
4 - View roll stabilised with the horizon (used in boats)
 
Using strings (like "StabilizedInAxisX") requires {{hl|#define}}s in config:
<syntaxhighlight lang="cpp">
#define StabilizedInAxesNone 0
#define StabilizedInAxisX 1
#define StabilizedInAxisY 2
#define StabilizedInAxesBoth 3
#define StabilizedInRoll 4
</syntaxhighlight>
 
==== startEngine = true ====
[[TokenNameValueTypes#Boolean|Boolean]]<br>
If true, moving the turret will start the vehicles engine. The engine will stop automatically once the turret stops moving.


== primaryObserver ==
=== T ===
[[TokenNameValueTypes|Boolean]]<br>
'''Description:''' True if this turret is used by the primary observer (e.g. tank commander), false else.
primaryObserver=1;


== proxyType ==
==== turretAxis ====
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes|String]]<br>
'''Description:''' The proxy type of the turrets gunner, this may be CPGunner or CPCommander. The proxies have to be named according to this setting, so either "proxy:Gunner.XX" or "proxy:Commander.XX".
'''Description:''' Axis selectionname in MemoryLOD (for the turret axis, ie mouse left and right input).
proxyType="CPGunner";
turretAxis = "OsaVeze";
 
==== turretFollowFreeLook = 0 ====
[[TokenNameValueTypes#Float|Float]]<br>
If 1, turret is slaved to the gunners viewdirection in freelook. When values is set to 2, it is possible to control turret on weaponless turrets. Value 1 is used in Attack Helicopters for example.
 
=== U ===


== proxyIndex ==
==== usePip = 0 ====
[[TokenNameValueTypes|Integer]]<br>
[[TokenNameValueTypes#Float|Float]]<br>
'''Description:''' The proxy index of the turrets gunner. If your proxyType is "CPGunner" and proxyIndex=1, the proxyname must be "proxy:Gunner.01", etc.
Gunner head movement will rotate the picture-in-picture (PIP) camera instead of the gunner's head within the vehicle.
proxyIndex=1;
Used for example in the Blackfish gunner turrets and the Hunter RCWS versions.
Since 1.73.141940 it is possible to use <syntaxhighlight lang="cpp" inline>usePiP = 2</syntaxhighlight>, which is going to make gunner following main turret movement - used i.e. for mortar gunner.
 
=== V ===
 
==== viewGunnerInExternal = false ====
[[TokenNameValueTypes#Boolean|Boolean]]<br>
View gunner in external.
 
==== viewGunnerShadow = true ====
[[TokenNameValueTypes#Boolean|Boolean]]


=S=
==== viewGunnerShadowDiff = 1.0 ====
[[TokenNameValueTypes#Float|Float]]


== selectionFireAnim ==
==== viewGunnerShadowAmb = 1.0 ====
[[TokenNameValueTypes|String]]<br>
[[TokenNameValueTypes#Float|Float]]
'''Description:'''
selectionFireAnim="";


== soundServo[] ==
[[TokenNameValueTypes|Array]]<br>
'''Description:''' Sound of the turrets servo, this is played whenever the turret is moving.
soundServo[]={"",0.003162,1.000000};


== startEngine ==
=== W ===
[[TokenNameValueTypes|Boolean]]<br>
'''Description:''' If true, moving the turret will start the vehicles engine. The engine will stop automatically once the turret stops moving.
startEngine=0;


=V=
==== weapons[] = {} ====
[[TokenNameValueTypes|Array]] An array made of all weapons this turret is armed with.


== viewGunnerInExternal ==
'''example''': weapons[] = { "BWMod_L55", "BWMod_MG3_veh" };
[[TokenNameValueTypes|Boolean]]<br>
'''Description:''' View gunner in external.
viewGunnerInExternal=1;


=W=
{{ConfigPage|end}}


== weapons[] ==
[[TokenNameValueTypes|Array]]<br>
'''Description:''' An array made of all weapons this turret is armed with.
weapons[]={"BWMod_L55","BWMod_MG3_veh"};


[[Category:ArmA: Addon Configuration]]
{{GameCategory|arma1|Addon Configuration}}
{{GameCategory|arma3|Vehicle Configuration}}

Latest revision as of 09:48, 6 September 2024

Operation Flashpoint used an optional turret class for some, few, models.

The next Arma titles use a Turrets (plural) class.

Generally, there is only a single "MainTurret" in the turrets class of any model that wants to have one. Or put another way, any model that has any turrets at all, will have a MainTurret class plus additionals if any.

This (often empty) Turrets class is embedded in the class heirarchy of many generic base models. A generic base model == Tank eg. Ie, a generic class that all real tanks inherit. For the given tank (a T80 eg), it is expected, that values will be filled into the (often empty) Turrets class already provided. Some model families (HMMWV_Base eg) flesh out this turrets class for all their children, others do not. The principle being, that many child models will inherit a Turrets class whether they want it or not.

As a consequence, many models that do not have turrets require the following:

class Turrets{};

I.e, their parent (or parents) have inherited a Turret class that needs to be ignored (for this model and it is children). It is good practice to put the above statement in your model (if you dont use turrets). A later change by you to a 'better' (™) parent might introduce unexpected errors if that parent has a turrets class and you didn't want one anyway.


Creating

Creating any turret (singular) class for your model involves the use of:

class CfgVehicles
{
	class SomeModel // AllVehicles e.g
	{
		class NewTurret; // derive from your base base base class
	};

	class MyGreatModel : SomeModel // AllVehicles e.g
	{
		class Turrets
		{
			class MainTurret : NewTurret // build (or overwrite) a completely new turret
			{
				// ...
			};

			class MoreTurrets : NewTurret // if any
			{
				// ...
			};
		};
	};
};

AllVehicles is the lowest possible base class where you can obtain a pristine NewTurret class. It would be an unusual model to inherit directly from AllVehicles (you might derive NewTurret from there, again, unusual), but you are unlikely to INHERIT AllVehicles directly. More likely, you have got some other generic class that fills in much of the donkey work. For the purposes of obtaining a NewTurret, it matters diddly squat where it comes from. ALL models have one. Used, or not.


Inheriting

There are of course, derivations on the theme, a.k.a:

class CfgVehicles
{
	class Ship;
	class Boat : Ship
	{
		class Turrets
		{	// your model has to inherit from somewhere!
			class NewTurret;	// create an entirely new animal OR
			class MainTurret;	// twiddle what's already there IF there
		};
	};

	class MyGreatModel : Boat
	{
		class Turrets : Turrets
		{
			class MainTurret : NewTurret	// create an entirely new one OR
			class MainTurret : MainTurret	// just twiddle a few things from the generic class
			{
				// ...
			};
		};
	};
};

The bottom line is that, ultimately, your turret will attach a NewTurret class (whether inherited, or, created right then)


ALL models, ultimately, derive their turret(s), from this one, singular, NewTurret class.

The NewTurret class is embedded in ALL Vehicle classes (via the bin/config.bin). It can be used, or ignored, but it is unconditially there.

The following alphabetical sort describes all values that can be set in YOUR derived NewTurret (eg your MainTurret)


Notes

  • In the following list, the default value is declared. Ie the value that comes from the (sometimes inherited) NewTurret class. There should be no requirement to restate a default value unless the class you inherit from has done so.
  • Some values cannot be known by the NewTurret class and are defaulted to empty. They need you, to fill them in. They are of course string values pertaining to YOUR model.

Very fortunately, these values (e.g memory points), are almost universal. It is a strange and wonderful model indeed that strays from the standard Czech names for these points.

In General, an inherited model will have already had these standard Czech names supplied by the parent. So at best, they are *generally* not required to be stated, and at worst, using the 'example' name supplied in the alpabetic list below is a fairly sage bet. (if you have not got an OctoVez in your model, it's your problem, isn't it)


Alphabetic

A

animationSourceBody = "mainTurret"

String
controller source name for use with this turret's body in the cfgModels class.

class CfgModels
{
	class YourModel : InheritedFromSomeWhere
	{
		class Animations : Animations
		{
			class MainTurret
			{
				type = "rotationY";
				source = "mainTurret";	// controller that provides input above
				selection = "OtocVez";	// name of the used skeleton bone
				axis = "OsaVeze";		// name of the model's axis
			};
		};
	};
};

animationSourceGun = "mainGun"

String
Creates a new animation source for use with this turret's gun in the cfgModels class.

animationSourceHatch = "hatchGunner"

String
Creates a new animation source for use with this turret's gunner hatch in the cfgModels class.

animationSourceElevation = ""

String
Creates a new animation source to be used for raising/lowering the turret.

animationSourceCamElev = ""

String
Creates animation for camera movement which is independent from the main cannon (see artillery guns)

animationSourceStickX = ""

String
Creates animation transferring controller input in X axis. Useful for i.e. joystick in turrets

animationSourceStickY = ""

String
Creates animation transferring controller input in Y axis. Useful for i.e. joystick in turrets

B

body = "mainTurret"

String
This defines the animation to be used for the horizontally moving selection of the turret and must be a model.cfg's animation classname. The name of the source for the animation is defined via animationSourceBody.

C

cameraDir = ""

String
unknown. used in conjunction with artillery turrets with detached camera elevation from gun elevation

canHideGunner = true

Boolean

castGunnerShadow = false

Boolean

class GunFire: WeaponFireGun{}

class GunClouds: WeaponCloudsGun{}

class MGunClouds: WeaponCloudsMGun{}

These all inherit the default external class.

class HitPoints

class HitPoints
{
	class HitTurret
	{
		armor = 0.8;
		material = 51;
		name = "turret";
		visual = "turret";
		passThrough = 1;
	};

	class HitGun
	{
		armor = 0.6;
		material = 52;
		name = "gun";
		visual = "gun";
		passThrough = 1;
	};
};

class Turrets{}

no embedded turret(s)

class ViewGunner

class ViewGunner
{
	initAngleX = 5;
	minAngleX = -85;
	maxAngleX = 85;
	initAngleY = 0;
	minAngleY = -150;
	maxAngleY = 150;
	initFov = 0.7;
	minFov = 0.42; // FOV of 0.4 is considered as 1x magnification by RSC displays
	maxFov = 0.85;
};

class ViewOptics

class ViewOptics
{
	initAngleX = 0;
	minAngleX = -30;
	maxAngleX = 30;
	initAngleY = 0;
	minAngleY = -100;
	maxAngleY = 100;
	initFov = 0.3; // baseline FOV 0.4 / optic FOV 0.3 = x1.33 magnification
	minFov = 0.07; // baseline FOV 0.4 / optic FOV 0.07 = x5.7 magnification
	maxFov = 0.35; // baseline FOV 0.4 / optic FOV 0.35 = x1.14 magnification
};

commanding = 1

Integer
The commanding number defines who is in command of the vehicle. The turret with the highest number will be the vehicles commander. If he dies, the crew of the turret with the nearest smaller number will take over command, etc.

D

dontCreateAI = false

Boolean

Do not create AI in this turret

E

elevationMode = 3

Integer.

0 - Default, manual elevation by mouse
1 - Manual elevation by elevUp/Down actions (Page Up/Page Down with default keybinds)
2 - Auto elevation to the aimed position
3 - Arma 3 logo black.png1.00 Switchable between manual elevation (1) and auto elevation (2) - with elevationMode = 3 the gun barrel is elevated via the page-up and page-down keys

ejectDeadGunner = false

Boolean
If true, the gunner's body will be ejected when killed.

elevationAnimSourceSpeed = 1.0f

Float
Speed of rising/lowering turret. See animationSourceElevation

F

forceHideGunner = false

Boolean
If true, the gunner will not be able to turn out.

G

gun = "mainGun"

String
This defines the animation to be used for the verticaly moving selection of the turret and must be a model.cfg's animation classname. The name of the source for the animation is defined via animationSourceGun.

gunAxis = ""

String
Description: Axis selectionname in MemoryLOD (for the gun axis, ie mouse up and down input).

gunAxis = "OsaHlavne";

gunBeg = ""

String
The name of the barrel's front point in the model.

example: gunBeg = "usti hlavne";

gunEnd = ""

String The name of the barrel's rear point in the model.

example: gunEnd = "konec hlavne";

gunnerAction = ""

String The name of the animation the gunner is using while turned out.

gunnerCompartments = "Compartment1"

String
Only units sharing a compartment can switch seats.

gunnerFireAlsoInInternalCamera = true

Boolean

gunnerForceOptics = true

Boolean
Forces the gunner to use optics while turned in.

gunnerGetInAction = ""

String
Name of animation used for Get In action

gunnerGetOutAction = ""

String
Name of animation used for Get Out action

gunnerInAction = ""

String
The name of the animation the gunner is using while turned in.

gunnerName = "Gunner"

String
Allows to use a custom string for the name of the turret.

example gunnerName = "Rear Gunner";

gunnerNotSpawned = false

Boolean
Used in Arma 3 vanilla for Copilot turrets. Difference between gunnerNotSpawned and dontCreateAI is unknown.

// Parameter doesn't exist in engine

gunnerOpticsColor[] = { 0, 0, 0, 1 }

Array

gunnerOpticsEffect[] = {}

Array
Defines the Effects used for the optical view when turned in. Effects correspond to classes defined in CfgOpticsEffect.

example gunnerOpticsEffect[] = { "TankGunnerOptics1", "OpticsCHAbera1" };

gunnerOpticsModel = ""

String
The optics model used when gunner is not turned out.

example: gunnerOpticsModel = "\ca\Tracked\optika_tank_gunner";

gunnerOutFireAlsoInInternalCamera = true

Boolean

gunnerOutForceOptics = false

Boolean
Forces the gunner to use optics while turned out.

gunnerOutOpticsColor[] = { 0, 0, 0, 1 }

Array

gunnerOutOpticsEffect[] = {}

Array

gunnerOutOpticsModel = ""

String
Description: The optics model used when gunner is turned out.

gunnerOutOpticsModel = "\ca\Weapons\optika_empty";

gunnerOutOpticsShowCursor = false

Boolean

gunnerType = ""

String
Description: The soldier class that is the default crew for this turret. Overwrites the class defined in the CfgVehicles's crew = ""; token

gunnerType = "O_Soldier_F";

gunnerLeftHandAnimName = ""

String
Description: Defines bone for IK animations for gunner left hand

gunnerRightHandAnimName = ""

String
Description: Defines bone for IK animations for gunner right hand

gunnerUsesPilotView = false

Boolean
The gunner will use the View LOD - Pilot if true.

H

hasGunner = true

Boolean
When false, AI and players can't enter the turret from the outside. Players can switch to the turret from inside the vehicle however (if there is an enterable position with the same Compartment).

hideWeaponsGunner = true

Boolean
If true, the gunners weapons (his rifle) will not be displayed.

I

InGunnerMayFire = true

Boolean
If true, the gunner will be able to fire the turrets weapons while inside the vehicle.

initElev = 0

Degrees
The initial elevation of the gun.

initTurn = 0

Degrees
The initial turn of the turret.

isCopilot = 0

isPersonTurret = 2

Value 1 gives a working turret but only accessible from the inside while 2 enables a person to get into the turret from outside.

L

lockWhenDriverOut = false

Boolean
If true, the turret can not be moved while the driver is turned out.

lockWhenVehicleSpeed = -1

Integer
Vehicle speed (in meter per second) at which point the turret will automatically return to a neutral pose (does not match up with "initElev" or "initTurn"). Value of -1 means it will never lock.

LODTurnedIn = -1

Integer
Defines the LOD that is to be used when the Gunner is turned in. Value = -1 seems to default to the standard LOD (for Turret's that is Gunnerview). Note that LODTurnedIn = VIEW_GUNNER; or similar is not valid - unless you use a #define (see Arma 3 Samples to see how defines work).

Value: -1 or 0 = Default LOD; 1 = first resolution LOD; 1000 = Gunnerview; 1100 = Pilotview; 1200 = Cargoview.

The View_Commander LOD is the default for turrets that have "primaryObserver = 1;" and "primaryGunner = 0;" in their config. The View_Commander LOD cannot be accessed manually in any other way.

LODTurnedOut = -1

Integer
Defines the LOD that is to be used when the Gunner is turned out. The same rules as with LODTurnedIn apply.

LODOpticsIn = -1

Integer
Defines the LOD that is to be used when the Gunner is turned in and in optics mode. Value = -1 or 0 default to the standard LOD (for Turret's that is Gunnerview). Note that LODTurnedIn = VIEW_GUNNER; or similar is not valid - unless you use a #define (see Arma 3 Samples to see how defines work).

Value: -1 or 0 = Default LOD; 1 = first resolution LOD; 1000 = Gunnerview; 1100 = Pilotview; 1200 = Cargoview.

The View_Commander LOD is the default for turrets that have "primaryObserver = 1;" and "primaryGunner = 0;" in their config. The View_Commander LOD cannot be accessed manually in any other way.

LODOpticsOut = -1

Integer
Defines the LOD that is to be used when the Gunner is turned out & optics in. The same rules as with LODOpticsIn apply.

M

magazines[] = {}

Array
An array made of all magazines this turret is equipped with.

example magazines[] = { "BigGunMagazine", "SmallGunMagazine" };

maxElev = 20

Degrees The maximum elevation of the gun.

maxHorizontalRotSpeed = 1.2

Float
The maximum horizontal speed of the turret.

maxHorizontalRotSpeed = "((360/X)/45)";

X = time in seconds to turn 360°

maxTurn = 360

Degrees The maximum turn of the turret, unit is deegres.

maxVerticalRotSpeed = 1.2

Float The maximum vertical speed of the turret, unit unknown. Bigger value - bigger rotation speed

memoryPointsGetInGunner = ""

String The name of the get in-point selection for this turret, located in the Memory-LOD of the model.

example: memoryPointsGetInGunner = "pos gunner";

memoryPointsGetInGunnerDir = ""

String
The name of the dir-point selection for this turret, located in the Memory-LOD of the model. It is used to make the gunner face a special direction while entering the vehicle.

memoryPointsGetInGunnerDir = "pos gunner dir";

memoryPointGun = ""

String
The point in the model where the MG fire of this turret will come from.

memoryPointGun = "machineGun";

memoryPointGunnerOptics = ""

String
The point in the model that defines gunner view point.

example: memoryPointGunnerOptics = "gunnerview";

memoryPointGunnerOutOptics = ""

String

minElev = -4

Degrees
The minimal elevation of the gun.

minTurn = -360

Degrees
The minimal turn of the turret, unit is degrees.

minCamElev = -90

Degrees
The minimal elevation of the camera, unit is degrees. Used together with elevationMode on artillery vehicles

maxCamElev = 90

Degrees
The maximum elevation of the camera, unit is degrees. Used together with elevationMode on artillery vehicles

missileBeg = "spice rakety"

String

missileEnd = "konec rakety"

String

O

outGunnerMayFire = false

Boolean
If true, the gunner will be able to fire and move(!) the turret while turned out.

P

primary= 1

Unknown: ??

primaryGunner = true

Boolean
True if this turret is used by the primary gunner, false else.

There can be only ONE primary gunner on a vehicle, else you might often get a CTD.
Using addMagazine will add to the primaryGunner weapons. See addMagazineTurret (Arma 3) for other turrets.

primaryObserver = false

Boolean
True if this turret is used by the primary observer (e.g. tank commander), false else.

proxyType = "CPGunner"

String
The proxy type of the turrets gunner, this may be CPGunner or CPCommander. The proxies have to be named according to this setting, so either "proxy:Gunner.XX" or "proxy:Commander.XX".

proxyIndex = 1

Integer
The proxy index of the turrets gunner. If your proxyType is "CPGunner" and proxyIndex = 1, the proxyname must be "proxy:Gunner.01", etc.

playerPosition = 1

Integer
Player position, used for sound controller "playerPos" - see Arma 3: Sound: SoundControllers

S

selectionFireAnim = ""

String

showgunneroptics

Boolean
Description: ???

showgunneroptics = true;

//Doesn't exist in engine

showAsCargo = false

Boolean
If true, turret is considered as Cargoposition

soundServo[] = {"",0.003162,1.0}

Array
Sound of the turrets servo, this is played whenever the turret is moving.

stabilizedInAxes = 3

Integer
0 - No stabilisation
1 - Gun elevation stabilised
2 - Turret traverse stabilised
3 - Both stabilised
4 - View roll stabilised with the horizon (used in boats)

Using strings (like "StabilizedInAxisX") requires #defines in config:

#define StabilizedInAxesNone	0
#define StabilizedInAxisX		1
#define StabilizedInAxisY		2
#define StabilizedInAxesBoth	3
#define StabilizedInRoll		4

startEngine = true

Boolean
If true, moving the turret will start the vehicles engine. The engine will stop automatically once the turret stops moving.

T

turretAxis

String
Description: Axis selectionname in MemoryLOD (for the turret axis, ie mouse left and right input).

turretAxis = "OsaVeze";

turretFollowFreeLook = 0

Float
If 1, turret is slaved to the gunners viewdirection in freelook. When values is set to 2, it is possible to control turret on weaponless turrets. Value 1 is used in Attack Helicopters for example.

U

usePip = 0

Float
Gunner head movement will rotate the picture-in-picture (PIP) camera instead of the gunner's head within the vehicle. Used for example in the Blackfish gunner turrets and the Hunter RCWS versions. Since 1.73.141940 it is possible to use usePiP = 2, which is going to make gunner following main turret movement - used i.e. for mortar gunner.

V

viewGunnerInExternal = false

Boolean
View gunner in external.

viewGunnerShadow = true

Boolean

viewGunnerShadowDiff = 1.0

Float

viewGunnerShadowAmb = 1.0

Float


W

weapons[] = {}

Array An array made of all weapons this turret is armed with.

example: weapons[] = { "BWMod_L55", "BWMod_MG3_veh" };