Random actor spawn
Hi I'm trying to get an actor to spawn randomly but at a precise point if that makes sense!
if for example I use the expression: random(100,300) it will spawn the actor randomly anywhere within a range between 100 and 300... but I can't define exactly where.
Does anyone know how I could get an actor to spawn randomly but according to say 5 precise spots for example it would spawn: either at y: 110, or 120 or 200 or 250 or 280.. ect...
I hope my explanation makes sense and really appreciate any help on this!
if for example I use the expression: random(100,300) it will spawn the actor randomly anywhere within a range between 100 and 300... but I can't define exactly where.
Does anyone know how I could get an actor to spawn randomly but according to say 5 precise spots for example it would spawn: either at y: 110, or 120 or 200 or 250 or 280.. ect...
I hope my explanation makes sense and really appreciate any help on this!
Comments
then have rules when randomAttribute=1, change position to 110
when randomAttribute=2, change position to 120
when randomAttribute=3, change position to 200
and so on
cheers
Tshirtbooth's video shows how to do this … be sure to download the projectFile for it!
@};- MH