Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ARTSGameMode::InitGame(const FString& MapName, const FString& Options, FString& ErrorMessage)
- {
- Super::InitGame(MapName, Options, ErrorMessage);
- //Default game classes assignation
- DefaultPawnClass = ACameraPawn::StaticClass();
- PlayerControllerClass = ACamerPawnController::StaticClass();
- FTimerHandle Dupa;
- GetWorld()->GetTimerManager().SetTimer(Dupa, FTimerDelegate::CreateUObject(this, &ARTSGameMode::Test), 2, false, -1.0);
- }
- void ARTSGameMode::Test()
- {
- PlayerControllerRef = Cast<ACamerPawnController>(PlayerControllerClass);
- SpawnGameObjects();
- CreateInputController();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement