Use SpawnActorDeferred to initialize the variables before spawning the object with FinishSpawningActor although there isn’t any way to pass in the parameters within the spawn call as far as i can tell.
Edit : BeginDeferredActorSpawnFromClass is the way to go since SpawnActorDeferred has been deprecated.