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

(Solved)How do I destroy an object if it collides with a model?

Asked by
brok4d 77
5 years ago
Edited 5 years ago

Hello, well, I'm doing a script to plan and still is very green, the question is that instancio 2 bodies when it is in air, and eliminate them when falling to the ground, until there is everything right, the problem is that when it collides with the model that is a building I want to be ditched, but as I go I throw a mistake, of course I can not destroy what does not exist, thank you.

https://pastebin.com/730A5996

0
I already changed it I made the same mechanism but four times for each building and it works but it gives me the following error of the same thing that is destroying before the object is created. Any solution for that? brok4d 77 — 5y
0
The solution was very easy I just had to put a condition to the rot and force in an if and solved. brok4d 77 — 5y

Answer this question