CogPackage: fix Gameplay Cues not cooked

CogSample: Add area of effect
CogSample: Add "Easy" cheat
CogWindow: Fix some tooltips
CogEngine: Spawns now spawn the default controller
CogDebug: Early out on DebugDraw if WorldContextObject is null
This commit is contained in:
Arnaud Jamin
2023-10-20 15:47:57 -04:00
parent 812f4fa91f
commit ac90ba6ab6
31 changed files with 1277 additions and 347 deletions
@@ -119,7 +119,11 @@ void ACogEngineReplicator::Server_Spawn_Implementation(const FCogEngineSpawnEntr
FActorSpawnParameters Params;
Params.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AdjustIfPossibleButAlwaysSpawn;
GetWorld()->SpawnActor(SpawnEntry.Class, &Transform, Params);
AActor* SpawnerActor = GetWorld()->SpawnActor(SpawnEntry.Class, &Transform, Params);
if (APawn* SpawnedPawn = Cast<APawn>(SpawnerActor))
{
SpawnedPawn->SpawnDefaultController();
}
}
#endif // !UE_BUILD_SHIPPING