Hi. I'll try
I want to spawn one out of three obejcts randomly once a second. I want these randomly created objects to be deleted after five seconds.
What I did so far is:
Action: "Select Random Game Object" (Inside this action I select three objects from the hierarchy and store the game object in a game object variable.)
Next Action: "Create Object" (Here I select my game object variable and spawn it at a random position.)
Next Action: "Wait" (Here I wait for one second and then go back to the first action)
So after a while I have a lot of randomly created objects. Now I want them to destroy themselves, each after five seconds. I could use the destroy action on the objects inside the hierarchy but then I wouldn't be able to spawn any longer.
Any idea?
Thanks!