Profile image

Help with XML

15.1k Rodrigo110  2.3 years ago

I've discovered a great way to create limited ammo on my aircrafts gun, but the issue now is that the aircraft also has a controllable turret and I don't want the forward facing armament to fire at the same time as the turret. Is there a way to make the gun facing forward 'deactivate' when I activate the turret (AG2)?

  • Log in to leave a comment
  • Profile image
    15.1k Rodrigo110

    Hey I hope you'll have a chance to look at my XML help @jamesPLANESii

    2.3 years ago
  • Profile image
    15.1k Rodrigo110

    @jamesPLANESii sum(clamp01(FireGuns)) < 13.8504155125

    this is the XML I have in the forward facing guns activation group

    This just because the cannon fires a roughly 11.6 rounds per second and he capacity is 150 so this allows the cannon to fire for 13.8504155125 seconds which is exactly 150 rounds

    +1 2.3 years ago
  • Profile image
    15.1k Rodrigo110

    What do you mean by the 'swivel' code? Do I put it in the guns activation XML? @jamesPLANESii

    +1 2.3 years ago
  • Profile image

    Try putting -clamp01(Activate2) in the turret swivel code

    +1 2.3 years ago
  • Profile image
    15.1k Rodrigo110

    @jamesPLANESii

    +1 2.3 years ago