To have more options for placing turrets indoors, we need a script commands to limit the rotation of turrets horizontally and vertically so that the player and AI cannot turn so much that their body models come out from the wall
// → Vanilla config values **class HMG_02** minTurn=-360; maxTurn=360; minElev=-8; maxElev=35;
// → to get config values // the same as (configfile>>"CfgVehicles">>_turret>>"Turrets">>"MainTurret">>"maxTurn"); _turretTurnLimits = getTurnTurretLimits _turret; //---result [360, -360] _turretElevLimits = getElevTurretLimits _turret; //---result [35, -8] // → need overwrite config values _turret setTurnTurretLimits [180, -180]; _turret setElevTurretLimits [10, -5]; // → get current turn and elevation value // well the same as (deg (_turret animationPhase "mainturret")) or (deg (_turret animationPhase "maingun")) _turretTurn = getTurnTurret _turret; //---result 49.9559 _turretElev = getElevTurret _turret; //---result 14.1017