Hello! A collision of two same objects, how to delete the one of them with lesser variable?
Unfortunately, I don’t believe there is an easy way to do that type of object selection currently.
Hi suppose that the object variable is hp so in a Foreach you can check the object variables and act in kind.
if myobject collision with myobject
if myobject variablehp < myobject variablehp
Not tested but i think it has some logic.
Hope this helps.
This is do-able in most cases, but what happens if they both have the same value in their variable?
this wouldnt be a big issue, since he doesnt need to delete then.
Problems come when there more then 2 objects colliding, or worse, 2 pairs of collusions happen at once.