I have a blueprint which creates a new cube above it when interacted with, but when I try to interact with this new cube it doesnt.

I have said everything I need to in the title, my code is in the image.

Hey @respectvetman123! Welcome to the forums!

Looking at the code I see what you’re doing, yes. But your description you gave (in the title) doesn’t fully explain what the issue is. You say “When I try to interact with that it doesn’t.”

What you are spawning is a Static Mesh Actor. So it’s just a static mesh, that’s it. It won’t have a lot else going on. Even so, if that is what is acting up, we need code from that- the code here seems fine.

Do you think you could try to be more specific in your description, and maybe explain what it isn’t doing that you need it to do? Thanks!

1 Like

I don’t know if you need all this info but you’re being useful so I can’t complain. The game is basically minesweeper in 3d first person. The code you see here is basically when you have dirt on your shovel, you must put that dirt onto a tile before you can dig another tile. This means in theory you can stack up a massive pile of dirt onto one tile, however the hitbox for interacting with a tile is only the base tile, not the dirt piled up on top of it, meaning if you place a dirt on top of a tile, it becomes impossible to interact with it from the top, as the hitbox doesn’t cover the dirt added on top of the main tile. If that doesn’t make sense I don’t blame you, sorry for the late response.

Ahh okay, I get it. Neat concept. And truthfully all of that info was helpful and I understand a lot more.

So what I’m seeing is you should be able to do this by making the dirt blocks a real actor- not just a static mesh. Then you can give that actor collision to use for getting the spawn location of your next dirt block. If you have something like that going on and it’s just not detecting the static mesh actor you’re spawning, make sure it has collision and keep in mind it will be considered a WorldStatic object for purposes of collision.

Maybe show us how you’re getting the object to stack on?

Good luck! Hope this helps!

Like @Mind-Brain said it looks like your spawning a static mesh actor, perhaps try spawning another actor of the class that your interacting with

Hey @respectvetman123! Did you get it figured out?

Let us know how it went and if you solved it make sure to tell us what you did for future answer seekers! :slight_smile: