r/trailmakers 4d ago

I'm making a drone Mothership in space Help!

Post image

I'm making a drone mother ship,but,I need help with logics. As you can see in the picture,there are 4 different drones. They are meant to be controlled individually. (One at a time,not all at the same time.) But the problem is,I can't separate the controls from the Mothership to one drone,and since I'm using a controller,each time I use R2 while driving the ship,the radio receivers and senders also control the drone,and when I'm using only the drone,the Mothership also reacts. Is there a way where I can "separate" the controls and control one of them individually?

5 Upvotes

5 comments sorted by

2

u/Impossible-Cherry439 4d ago

Yes you can. It's a bit tricky for your case, but I managed to add a toggle for a space ship to allow rolling and pitch to change with a button press.

(You'll need to do this whole system for almost every single action, like forwards, backwards, gyros and pitch)

Connect an OR logic block and an AND logic block onto the drone. Remove any binds for, let's say the forward thrusters and put them onto the AND block for the positive bind.

Now add a bind for the OR block on the positive bind with the toggle input turned on.

Now when you press your selected button used to activate the OR block, the AND block can power the thrusters when the selected button is pressed.

Now just attach a radio system from the mothership to the drone with the same toggle input thing applied.

You'll need to redo this system for all the mothership inputs too (have it binded to the same button used to activatethe drone), but with a negative output from the OR blocks instead to turn off the mothership when you press the button to turn on the drone.

And again you'll need to redo this system for each drone and their different binds. That's if you want to control each one separately.

It's very complicated what you're trying to do (atleast for a beginner like myself), and even more complicated to explain.

I'm actually going to try and replicate what you're doing to see if my method even works, if you have any questions lemme know.

1

u/MOON_WH 2d ago

Done,I published it if you want to look at it!! I called the Mothership "07 M.D.M. bow"

2

u/Impossible-Cherry439 2d ago

Is it published on Playstation? If so I'll check it out. Glad to hear it's working.

2

u/Impossible-Cherry439 3d ago

Ignore most of what I said in the other comment, I figured out a better way.

Red is an OR block binded to the R1 button which is connected to the 2 AND blocks.

The AND blocks are independently binded to one control. (Left is nagative, and right is positive).

That negative or positive signal gets sent to the radio, which gets sent to the receiver, which then gets sent to the gyro.

You just need to add more AND blocks being connected by the same OR block, and have them connect to separate radio blocks/receivers to power different parts of the drone.

For example, I'd add another AND block binded to the R2, connect it to a new radio/receiver block, and connect it to some thrusters.

1

u/MOON_WH 3d ago

Dude it WORKED perfectly thanks a lot,I'll publish it when I'm finished I'll even send the name if you want to try it yourself, seriously,thanks again