How to make custom event fire in all copies of blueprint?
So I have "Get all actors of class" -> "Get (a copy)" -> Custom event,
In the target pawn blueprint (It's an AI enemy) I have custom event -> print string 'hello'
Now I have many copies of this pawn blueprint in my level, but the 'hello' only prints once from one of them.
How do I make it so that all of the copies will print string hello?
I'll clarify further if something was unclear, thanks in advance.
asked Mar 14 '19 at 01:28 AM in Blueprint Scripting
You have to do a ForEachLoop and use the Get All Actors of Class node as the Array. The ForEachLoop will run for as many times as there is a valid actor (spawned in map) to loop through.
answered Mar 14 '19 at 01:30 AM
IEI Game Studios
Follow this question
Once you sign in you will be able to subscribe for any updates here