I have a ceramic pot that i break by hitting it. When its broken i want to spawn a coin for the player to pick up.
In the image i show where i’m at. I am wondering if i can just do it all inside the pot bp?
I have a ceramic pot that i break by hitting it. When its broken i want to spawn a coin for the player to pick up.
In the image i show where i’m at. I am wondering if i can just do it all inside the pot bp?
yes you can have the coin spawned from the pot. it seems like your pretty close to achieving what your looking to do. to accomplish what your looking to do all you have to do is spawn the coin just prior to the pot being destroyed. I would use the actor location of the pot as the location of the spawned item. all you really need to figure out is how your going to break the pot.
to solve this issue at its most basic you just need a do once node. the do once node will allow the script beyond it to only be triggered once so you would have it prior to to the spawn. this will in effect limit the number of spawns to one.
so i got it to spawn coin after break, but, the coin keeps spawning, everytime the player character touches the pieces of the broken pot. The coin duplicates 3-4 times before the pieces disappear.
If i add a destroy on the pot, the pot instantly disappears when touched. And i want the pieces to linger for a short while after breakage.