Profile image

Cycling action with funkytrees

25.5k lemoose  1.9 years ago

I'm trying to make a weapon bay that upon tapping (not holding down) FireWeapons, will automatically cycle to its fully open position and then close. Can't figure out how to do this to save my life. Any ideas?

  • Log in to leave a comment
  • Profile image
    25.5k lemoose

    @ZeroWithSlashedO yea thats actually what I ended up doing lol it actually works better because you dont have to wait for the bay to open when you want to fire

    +1 1.9 years ago
  • Profile image

    many people have tried
    but because of how the weapon activation behaviour (which is instantaneous) you can't exactly do this
    you can however, activate it via SelectedWeapon="Weapon Name" or if you really want that sense of it opening when it's about to fire the missile, and close after firing the missile, you can make use of TargetLocking, TargetLocked, and ammo("Weapon Name")=x

    If you want to, you can take a look at my F-22A for the code I use in my internal weapons bay

    +1 1.9 years ago