Profile image

NEED HELP ON THE FUNKY TREES

2,125 PaulJohnLozada  5.1 years ago

So, here's the thing: once I press the launch weapon, I want the bay doors to open immediately, and then close as long as the missile is launched. Can someone figure out the exact code, please? 🥺🥺

I would appreciate it if someone tries, at least. 😁

  • Log in to leave a comment
  • Profile image

    @NEOCORP i think so, i assume u will have to make it a boolean variable so that it will return a true value only when both weapons are selected. but according to your question, selecting both weapons probably requires the use of 2 "activates", since i dont remember how i can select 2 weapons at the same time only using standard inputs, on the other hand, having it open on "either" weapon selection is easy.

    22 days ago
  • Profile image
    22.7k NEOCORP

    @GorillaGuerrilla Can you make it open only when selecting both weapons, instead of closing it?

    +1 22 days ago
  • Profile image

    i actually do this
    FireWeapons * (SelectedWeapon = "30mm Fused UHE Cannon" ? 0 : 1) * (SelectedWeapon = "TPD" ? 0 : 1)
    so the bay door opens on all occasions except when the 2 weapon in the code are selected

    +1 3.5 years ago
  • Profile image
    14.4k Griffon1

    You'd have to use tons of logic gates for this.
    so basically, you would want to use the following expressions: ammo(weapon name) should be the specific missile you want to fire. They are ordered by last placed in designer, I think.
    Then you would want to use SelectedWeaponName to make sure its the right weapon type.
    Optionally you can use TargetSelected and TargetDistance (Set TD to the range of the weapon) to make it only popped out when you've selected and/or locked onto a target.
    I hope this helps. I'm not great at writing the strings themselves, but if I was to do it, those are the variables I'd use

    5.1 years ago
  • Profile image
    85.1k WIZARD2017

    rotator speed:100%
    input:
    rate(ammo("Weapon name"))<0?1:smooth(0,0.6)

    Oh, I didn't try it yet, it might not working.

    5.1 years ago
  • Profile image

    @BagelPlane Aye, then...

    5.1 years ago
  • Profile image
    24.5k BagelPlane

    Hold on, I need time to think...

    +1 5.1 years ago