Profile image

I need help!!!

214 XgenAerodynamics  2.7 years ago

Hi yall, so im making parachute bombs, and i want them to launch and open the parachute at a specified altitude or a timed delay using code,can someone give me the xml code for a timed delay and a specific altitude opening? Thank you

  • Log in to leave a comment
  • Profile image

    @HuskyDynamics01 I tried inputing it into XML. And it disappeared

    2.7 years ago
  • Profile image

    @XgenAerodynamics
    I know someone already answered, and there's really no point in me answering, but there's currently no way of knowing how to activate anything through a weapon's location, which I wish they'd add soon.
    However, delaying activation can be achieved, and has been a thing for the players. I didn't understand what smooth did when I discovered it, so I didn't use it much. But, as you can tell, it delays an activation. Oh and, I think it slows down the speed of a control surface in wings.

    2.7 years ago
  • Profile image

    @XgenAerodynamics It should go in the parachute's Input value.

    2.7 years ago
  • Profile image

    @SheriffHackdogMCPE thank uuu

    +1 2.7 years ago
  • Profile image

    @HuskyDynamics01 where do I input the code?

    2.7 years ago
  • Profile image

    @ZeroWithSlashedO

    Both for different purposes, or whichever can be achieved

    2.7 years ago
  • Profile image
    19.7k Axartar

    Ah okay@HuskyDynamics01

    2.7 years ago
  • Profile image

    @Axartar I don't believe there's a way to find the altitude of a specific part (such as a bomb). The only output variables for weapons are for the camera, if you happen to have one enabled.

    2.7 years ago
  • Profile image
    19.7k Axartar

    Yeah, my funky trees knowledge is short, but with the variable outputs is there an altitude variable parts?@HuskyDynamics01

    2.7 years ago
  • Profile image

    If the bombs are being salvoed via an activation group, you could do smooth(yourActivationGroup,1/delayTime), with the appropriate values. For example, if you wanted to launch the bomb with AG2 and have the parachute deploy after 4 seconds, you would do smooth(Activate2,0.25).

    I don't believe it's possible to have something set up this way for launching a bomb via the regular "Launch Weapons" control (since the bomb doesn't really have a way of knowing whether it's been launched or not), and it is not possible to do it when the bomb reaches a specific altitude, since the only Altitude variables are for the active cockpit.

    2.7 years ago
  • Profile image

    Wait so, I'm a bit confused.
    Do you want activation delay by time or activation delay by altitude?

    2.7 years ago
  • Profile image

    you need to contact snowflake0s he's the best ft coder

    2.7 years ago
  • Profile image

    @Axartar thank u so much, please get back To Me when u can

    2.7 years ago
  • Profile image
    19.7k Axartar

    For delay it’s its own variable on the parachute, I think. If it exists. The altitude seems a little difficult. I’m not great at funky trees. I’ll have a look

    2.7 years ago