Profile image

How do i make a part deactivate when an activation group IS enabled

165 ZemiGG  21 days ago

I wanna do this with an engine so that I can switch between engine 1 and engine 2 by enabling/disabling an activation group but I can't figure out how to make the engine deactivate when an AG is enabled, I am not talking about the input part of the engine but the part where you can only put activation groups.

  • Log in to leave a comment
  • Profile image
    19.7k Axartar

    @ZemiGG glad to hear that!

    21 days ago
  • Profile image
    165 ZemiGG

    @Axartar Ayy it actually works, thanks man!

    21 days ago
  • Profile image
    19.7k Axartar

    although I should note that zeroondeactivate will need to be turned on, also you cant really code much with the activation groups, so its best to do it in the inputs, you can still have it throttle controlled by multiplying the input by clamp01(Activate1) hence it turns off completely when the activation group is off, otherwise it is the throttle

    21 days ago
  • Profile image
    19.7k Axartar

    so for an activation for like an engine you can do clamp01(Activate1) or whatever, the Boolean invert is ! so in theory !clamp01(Activate1) would deactivate with group 1, I recommend having a look at the funky trees guide by snowlakes its one of the useful links in forums

    +1 21 days ago