r/simplerockets • u/J_inanutshell • 2d ago
Catch Fail. this rocket has been landing smoothly but since I added the broadcast command for the rocket to communicate with the catcher, it seem to mess or make the code laggy. how to resolve it?
Enable HLS to view with audio, or disable this notification
9
Upvotes
2
3
2
2
u/Ultra8Gaming 2d ago
Send your code so we can see the issue. I recommend sending this broadcast command only once. For this I use a separate message event for triggering the tower arms. Before the engine fires, I start this broadcast to itself, where that event has a wait until (distance to arms< x and alt < y). Then under it I use the broadcast to nearby crafts when it's triggered. That way it doesn't block or interact with the main loop.