Hi I am simply trying to destroy and actor when it overlaps another actor. I use cast to actor of class select the overlapping actor but seems it never works. I made it work when it was colliding with player character but can not make it work with another actor of class. Basically what happens is when the actor overlaps the other actor is should spawn another actor similar to itself which is actually a shattered version. The statue is an actor blueprint and also the big square that has yellow collision box is another actor that is colliding. I just added it to the scene so I can test it. The screenshots are below.
- there’s no need to cast
- this is the
Other Actor
this actor overlapped
Get Actor of Class
does nothing here and is not necessary- place the
Destroy
node last
when the actor overlaps the other actor is should spawn another actor similar to itself which is actually a shattered version.
Wouldn’t it be easier to replace the mesh asset on the same actor? Why bother destroying / spawning - it’s expensive and complicates things. Consider it.
Hi thank you so much for the quick reply! First of all I will definetely considet your advice on adding the shattered (fractured) object into same blueprint that sounds more viable. Since I am a new learner of unreal I am just like trying to progress with it as I go along. Also if I like click the other actor which node will I select from there the regular destroyer actor? Would that be enough. For overlapping with character I was like using branch and then use equal to node with that connecting player character then. Move from there.
Not sure what that means. What is supposed to happen from the player’s perspective? The player walks into the statue and the statue changes to the shattered one? Are you using just a model or you mean the chaos fracture where things fall apart.
Hi basically what will happen is when the player steps on the circular stone in the middle it will go down like a button spawn another big invisible actor with collision like a huge rectangle which will touch all 3 statues around the player which will make the statues explode or shatter etc. Thing is I will make it like a radial wave (using particles) spreading from the center of the blue diamond. So will have delay like 1-2 sec before I spawn that invisible square object giving the illusion of being destroyed by the radiak wave. (Will check if I can do it straight with particle collision ofcourse) Yes I am using chaos fructure.
Hi @Everynone I think I made it. My bad was I was setting up so that the object was already overlapping the object when the game started so it didn’t work no matter what I did. So the object needs to be not touching the other object when the game starts. now I tested it in another scene and it worked. I set the blueprints in the following way. Only something I don’t understand which is why overlapping doesn’t work if the overlapping object is already passing through the other object when the game starts. Thank you for all the help. I appreciate.