After reading this suggetion, i wanted to give it a try.
i got it to work just like suggested
![]()
![]()
but it does only work with the cannon, when switching to hellfire the bar doesnt update and freezes in the middle (default position). I guess this is because the hellfire weapon does not actually move.
i also wanted to add a bar to show the turret elevation. does anyone know if there is a variable for that? VehicleTurretElevation does not exist :(
i got it to work just like suggested


Code:
rem -------------------------------------- GunnerBar --------------------------------------
hudBuilder.createPictureNode ApacheCoPilotHud ApacheBargunner 349 486 128 64
hudBuilder.setPictureNodeTexture Ingame\Vehicles\Icons\Hud\Air\Attack\Ah64a\ah64_gunbar.dds
hudBuilder.setNodeColor 0 1 0 1
hudBuilder.createCompassNode ApacheCoPilotHud ApacheBargunnerView 3 365 499 72 16 1 0
hudBuilder.setCompassNodeTexture 1 Ingame\Vehicles\Icons\Hud\Air\Attack\Ah1z\Ah1z_gunnerwiew.tga
hudBuilder.setCompassNodeTextureSize 128 16
hudBuilder.setCompassNodeBorder 0 0 0 234
hudBuilder.setCompassNodeValueVariable VehicleTurretAngle
hudBuilder.setCompassNodeOffset -31
hudBuilder.setNodeColor 0 1 0 1
i also wanted to add a bar to show the turret elevation. does anyone know if there is a variable for that? VehicleTurretElevation does not exist :(