How to get children to kill there parents
by Mark Maynard · in Torque X 2D · 08/29/2010 (7:44 pm) · 5 replies
So I have this multi-emitter component I've created to spawn different animals with different colored jetpacks. I have different colored bullets I shoot, red bullets destroy animals with red rockets and so on. My problems is I emit a randomly colored rocket with a random animal attached, but when I assign both objects to be collide(kill collision) with that color bullet it only works with the rocket(parent) object. I'm pretty sure this is because the animal(child) object can't kill it's parent so the collision fails.
Anyone know a way around this?
Anyone know a way around this?
#2
You have the child set the MarkForDelete in the parent to true, that would do it.
08/30/2010 (4:33 am)
Raise them poorly!You have the child set the MarkForDelete in the parent to true, that would do it.
#3
08/31/2010 (12:37 pm)
Really thought this was going to be a troll. But, I fell for the topic anyways.
#4
09/02/2010 (12:30 am)
I wrote the title and then realized the double entendre. I figured at least it will get a response, I wish there was a true API doc for TX.
#5
09/02/2010 (1:45 am)
Hopefully there will be when we get a new TX.
Torque 3D Owner Jackie Hayes