Spawn Actor from Index
How can I add different actors to an index, for which in a for loop it will randomly select one of the actors and spawn it using spawnActorFromClass?
asked Nov 18 '15 at 08:12 PM in Blueprint Scripting
You want to create an array of actor classes and then populate that array with the actor types you'd be interested in spawning. Then, you use the "Random Int In Range" node to get a random number between 0 and the array length and use that as an indexer into your array. Use the 'get' node on the array to pull out a class template and feed that into your "SpawnActor" node.
answered Nov 18 '15 at 08:22 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here