Jump to content

How would I make multiple conditions


NepalRAWR

Recommended Posts

I want to trigger the next node when 2 conditions are met (5 km height and 300 m/s speed) but if I place the 2 nodes one after another (Start Node --> 5km Node --> 300 m/s Node --> next node) it isnt good because someone could fly up to 5 km, then fly back down to reach the 300 m/s and then the next node will be triggered. But I want it that the next node only triggers when you are 5 km up and have 300 m/s speed.

Link to comment
Share on other sites

That is surprisingly tricky. You need to snap height and speed together. When height is reached, the speed will be checked as well, and then one or the other output is activated. If it was height only, you need to direct control flow back to the height node, to be able to check again. Be sure to put a time delay in there, you can degrade performance really fast otherwise.

In this image, message alt is triggered, if you are above 1000m and above 100m/s. The message will repeat every 5s. Go below, and it will stop checking. Fly above 1000m and below 100m/s, message spd is triggered and mission ends with success.

gBEewjt.png

Relevant settings on the nodes (other than directly visible in the image):

Spawn Vessel has SPH as editor (don't try to build a plane if you started in the VAB, it won't work, even if you switched editors)

Activate only once removed for "Reach Altitude", "Display alt" and "Time Since"

"Time Since" has "Reach Altitude" as reference Node ("Display alt" would also work)

"Display spd" is end node with success.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...