Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How can I make union A break apart on contact with union B?

Asked by 4 years ago

Hey, so I'm making a really basic game similar to those crash the train games by Trainmaster4, I am mainly making it for my own fun just to watch them crash into each other. I've built my models and made a small map, but I got to scripting and got completely stumped. How can I go about making the two trains break apart and possibly catch fire when they come in contact? If I have hazardous materials cars on the train how could I go about making these explode along with breaking apart? Thanks.

1 answer

Log in to vote
0
Answered by 4 years ago

Since you didn't provide a script, we can't help you with much, but we can lead you in the right direction. If you want them to break apart and catch fire after touching, then you should use the .Touched event. You can read about .Touched here. If this helped, then please accept this answer! Good luck!

Ad

Answer this question