How to randomly spawn spinning coins in area?

Hi all.

I would like to be able to spawn spinning coins in an area. I have taken a look at the exaple contents “random mesh spawn” however that only spawns static meshes. I have a spinning coin by itself in a seperate blueprint as well. I have tried modifing the exaple script as well, but to no avail.

Any thoughts or suggestions?

Most of that example should work the same; you just want to use SpawnActor to spawn a new instance of your coin blueprint.

https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/SpawnAndDestroyActors/Blueprints/

Is there something else you’re having trouble with?

Can you post what you have so far in your script?

Yes I would use the spawnactor (your spinning coin in this instance) and for the location you can set lie x and y values to be random integers between a range.

Hi peeps,

OK I will do that as its seems like the general consensus. Here is what I have had so far, (simple) for the spinning coin, just a static mesh with logic on event tick, also i was just trying to modify the example script for random static mesh (posting pic but again this is just stock, maybe useful to someone who’s stumbling through for answers…)

:

Ok Yes thanks to Nken418 , GigasightMedia !!

Ok got it working, don’t know if it is 100% correct way to do it, but using the input from the above peeps, I have been able to achieve the spinning coin result that I want. More or less combining the info from the above web page and adding it with the example contents “random static mesh spawn”.

Here is what I have implemented now:

And here are the results, sorry not a yt vid, but proof of concept:

The below answers have solved this, at least to my satisfaction. IDK how to mark as solved :confused:

You can vote answers up or down by clicking the arrows above or below the number next to the answer.
You can accept an answer by clicking the check mark.

Glad you got what you needed!