Nevermind my previous posts. That was my screwup. So yeah, it is delay issue. In my beginplay of level if I put:
TArray<AActor*> actorstest;
UGameplayStatics::GetAllActorsOfClass(GetWorld(), AMyCharacter::StaticClass(), actorstest);
It will return empty. But if I put same in gamemode’s Tick event eventually it will start returning 1 (after a few update cycles)