Error when getting the length of an array of Actors

Try Executing the “Get All Actors of Class” before the “Print String” node.

I keep getting this kind of error (Default value " for TargetArray is invalid: ‘Literal values are not allowed for array parameters. Use a Make Array node Instead’)

when I try to do simple stuff, as getting the length of an array. SpawnTarget is a blueprint class I made. What am I doing wrong?

Hey, thanks! Now it works, but I still don’t get how the ‘exec’ flow works. Where should I look to learn more about it?

canl solved my issue. All I had to do was connect the ‘exec’ pin from the event to ‘Get All Actors of Class’