Hello, I would like to know if it is possible to change the actor when colliding with my character
it doesn’t work here
here are the actors
the brick box blueprints
and mario blueprints
Hello, I would like to know if it is possible to change the actor when colliding with my character
it doesn’t work here
here are the actors
the brick box blueprints
and mario blueprints
The easiest way to do this is to make these the same blueprint
and when mario collides, just change the material on the cube.
They have two different shapes
Ok, then you can do it with visibility
Two different meshes in my BP ( and the collision volume )
Construction script
Overlap code
Hello, thanks for answering. I tried but it didn’t work. I don’t know what I did wrong, I’ll show you
Just before starting the game you can see the two meshes, that’s fine.
and when I start the game it is fine that the brick mesh is visible but when it collides it does not change to the other mesh
add but it has no effect
Not sure if you remember, but in the private thread a while back:
Are you sure you can / want use an overlap for this? If the collision is not specifically set and configured to handle overlapping, this will never work.
Any reason you’re not using onHit
?
Print this
So why are you even using an overlap then…
Use the same hit to trigger the changes you want. Something like:
Hit the collider, change mesh, play the animation.
nothing
You’re setting the mesh to nothing…
Take the static mesh component that is already there and change its mesh. You do not need 2 components for this.
From your project:
I think that’s what you need, right? And you can use a DoOnce
node if you want this to happen only once.
Then it’s not overlapping
No, I had already solved that, what I need is another actor, where I have a brick box, and when it collides with my actor, the brick box transforms into a deactivated yellow box (they are two different models)
That’s what the above does. It switches meshes about. Put whatever new mesh you want the component to show. Or spawn a new actor and destroy the old one - but that sounds like a poor solution here. Is it really necessary?
Other than that, not sure what you mean / want.
I think the problem is here, when I activate this, it does not start the game but it is missing, this object does not appear
I did it!!! What I did was a mix of the two tutorials they sent me, I combined two things. thank you!!!