Sintax:
[disp, unitpos, type, quantity, min range, max range, muzzle velocity, rounds per salvo, rate of fire, max dispersion array, time to aim, detonate?, firing gun, ammo type, firing pos, gun barrel length, scan arc, minknows, enemy sides, antimissile?, gun initially ON?, Radio Messsages?, radar on sound, radar off sound, shot sound]
Disp:- Name of the Gun or Vehicle
Unitpos: Gun armed unit position inside vehicle: 0 driver, 1 gunner, 2 commander. [ Usually Gunner ]
Type: Array for what type of units the gun will target ["Air"] or ["LandVehicle"] or ["Men"] or ["Air", "LandVehicle", "Ship"],etc. "REMOTE" target type may be used to indicate this unit may target targets locked by other units.
Quantity: number of salvos loaded into this unit. [ Number of Rounds Unit Has ]
Min range: Closer than that, the system will not attack units.
Max range: Maximum Range Unit Will Target Enemy
Muzzle velocity: Muzzle velocity in m/s
Rounds per salvo: Number of shots per salvo.
Rate of fire: Maximum number of salvos fired per minute.
max dispersion array: [horizontal, vertical] in degrees, max dispersion at 400m.
time to aim: Time needed to aim to the target in seconds.
detonate?: true/false, if true an small explosion will happen when round if close to the target.
firing gun: The gun class which will fire, "" if none.
ammo type: Ammo class use to fire, for example "B_23mm_AA", "B_20mm_AA", "B_30mmA10_AP", "B_30mm_HE", "B_127x99_Ball", etc.
firing position: Relative firing position of the salvo to the launcher (vehicle or unit parameter).
Gun barrel length: aproximate length of the gun in meters
Scan arc: arc in front of the firing unit where targets may be locked, 90 means from -45 degrees to the left to +45 degrees to the right, 360 will lock on any target in range, 180 will lock on any target in front of the firing unit (from -90 to the left to +90 to the right).
Minimum knowledge: Minimum knowledge of the target from 0 (nothing, STANDOFF attacks) to 4 (everything).
Enemy sides: array with sides considered enemy (west, east, resistance, sideEnemy and/or civilian) note: empty units side is civilian
Antimissile: Able to track and fire against incomming missiles? (true/false)
Initially active: true/false. If false, the unit may be activated writing a true into its "mando_gunattacker_on" variable.
Radio initially on: true/false. If false, it may be turned on when needed writing a true into its "mando_gunattacker_radio" variable.
Radar ON sound resource name (defined in description.ext), "" if none.
Radar OFF sound resource name (defined in description.ext), "" if none.
Shot sound resource name (defined in description.ext).