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
Question7 Comments
- Log in to leave a comment
-
4,796 TweedleAerospace
@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.
-
-
23.6k NebulaSpaceAgency
@Tweedle_Aerospace Can you word the explosion code a little differently? i don’t quite understand it
-
4,796 TweedleAerospace
@Tweedle_Aerospace you could also replace the and with an or so that both don’t need to be activated at the same time.
-
4,796 TweedleAerospace
And for the explosion
when part partA explodes
set ag x to falsepartA 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.
-
4,796 TweedleAerospace
while true
if ag x = true and ag y = true then
set ag z to falseX, Y, and Z would be numbers that represent the AG’s.
@Tweedle_Aerospace there is no “PartA” only “On Part Exploded” and whenever i use that nothing happens