AActor::GetAttachedActors gives empty array in shipping build?

Definitely do not do this in an actors BeginPlay. You can’t be sure that your “main” actor begins play after your other actors begin play. If you have to add a timer before running a function, there’s usually something wrong. Using a timer in the way you’re doing here will give you a lot of issues when working with different system setups.

Can you explain what you are trying to achieve?