How to spawn specific Actors after other specific Actors are destroyed?
So here's the situation: I'm working on a VR assignment for a class. In my project, I need to have an actor (in this case, a dirty dish) fall through a water plane, get destroyed after a 5 second delay, and once it's destroyed, immediately have it reappear "clean" nearby. I've got the destroying of actors and delay down, and even managed to make the actors respawn as soon as the original is destroyed, but where I'm running into real trouble is I need to have the original actor (the dirty plate, for example) be destroyed and then have a different actor (the clean plate) spawn elsewhere.
How can I accomplish this? Trying to GetActorsOfClass wasn't working for me either. I'm assuming the solution lies within using the gamestate or Manager and an array, but can't figure it out. I have been searching for an answer to this question both online and through trial and error for three days now, and haven't resolved it. Any help would be immensely appreciated!
asked Jul 02 '18 at 02:08 PM in Blueprint Scripting
Why aren't you simply using "spawn actor from class"? Spawn dirty dish, it falls through water plane, waits 5 seconds, "spawn clean dish", destroy dirty dish, problem solved.
answered Jul 02 '18 at 02:13 PM
Nebula Games Inc
Follow this question
Once you sign in you will be able to subscribe for any updates here