How to spawn actor with a random image
thegwill
Member Posts: 31
Does anyone know how to spawn an actor with a random image? (chosen from a set of images)
Can I use an animation to store the images maybe?
Can I use an animation to store the images maybe?
Comments
image1.png
image2.png
image3.png
etc.
Then put a Change Attribute behavior in the spawned Actor, like this:
Change Attribute: self.Image To: "image"..random(1,[number of images])..".png"
Change [number of images] to the actual number of images you have.
i.e: Change Attribute: self.Image To: "image"..random(1,5)..".png"