How does one make a simple script that deactivates an AG if 2 other AG’s are enabled at the same time, and how do i make a script that deactivates an AG when an explosion occurs

Tags
Question

7 Comments

  • Log in to leave a comment
  • Profile image

    @Tweedle_Aerospace there is no “PartA” only “On Part Exploded” and whenever i use that nothing happens

    3.8 years ago
  • Profile image

    @NebulaSpaceAgency sorry I have been in the car for a while.

    Go to events (the lightning symbol) and you will see an event that says on part exploded. There will be a golden variable that says part A or something like that. You can’t change that variable. Then after you drag that out you can drag out an action (under rocket symbol) that says set activation group x to _. You can put a false in the blank to turn off that ag. True to turn it on.

    3.8 years ago
  • Profile image

    @Tweedle_Aerospace ello?

    3.8 years ago
  • Profile image

    @Tweedle_Aerospace Can you word the explosion code a little differently? i don’t quite understand it

    3.8 years ago
  • Profile image

    @Tweedle_Aerospace you could also replace the and with an or so that both don’t need to be activated at the same time.

    3.8 years ago
  • Profile image

    And for the explosion

    when part partA explodes
    set ag x to false

    partA is not changeable. It is only going to change to the first part that explodes. So if you need a certain part I think I can help with that too.

    3.8 years ago
  • Profile image

    while true
    if ag x = true and ag y = true then
    set ag z to false

    X, Y, and Z would be numbers that represent the AG’s.

    3.8 years ago

1 Upvote

Log in in to upvote this post.