How to randomly spawn meshes?

Hello! So I’ve been seeing a lot of “Anomaly” games and such recently, and that made me think.

“How can they spawn at random times”

For example, if I’d want to have a chance for a monster to spawn, but I want it to be unpredictable (So nothing like “Every 1 minute it spawns”) how would I go on doing that?

I’m currently making an experimental horror game, and the player should go around the map doing different tasks, how could I make it so the tasks “reset” or “appear” at random times?

Apologies if my explanation is difficult to understand, as I’m not sure myself how to ask the question.

Any help is appreciated!

I guarantee there is a smarter way to do this, but this is the first way I thought of. There are several Blueprint nodes for getting random numbers. You can treat this like a dice roll by getting that random number on a fixed interval and only spawning something if it is your chosen number.

Edit: Make sure the Timer is set to Looping

Thank you that worked! I connected the logic to my “CCTV” blueprint, so when the player opens cameras the came begins, I appreciate the help!

PS for anyone wondering, you should add “Do Once” node before “set timer by event” if you want that “anomaly” to do only once during one round