fix spawn loc for pickups (testing)

This commit is contained in:
Project-Z1K
2023-12-06 23:08:36 +01:00
committed by GitHub
parent 7fcb1fb623
commit be2f5eb0c9

View File

@@ -13,7 +13,7 @@ bool ABuildingContainer::SpawnLoot(AFortPawn* Pawn)
auto GameMode = Cast<AFortGameModeAthena>(GetWorld()->GetGameMode());
FVector LocationToSpawnLoot = this->GetActorLocation() + this->GetActorForwardVector() * this->GetLootSpawnLocation_Athena().X + this->GetActorRightVector() * this->GetLootSpawnLocation_Athena().Y + this->GetActorUpVector() * this->GetLootSpawnLocation_Athena().Z;
FVector LocationToSpawnLoot = this->GetActorLocation() + this->GetActorRightVector() * 70.0f + FVector{ 0,0,50 } ;
auto RedirectedLootTier = GameMode->RedirectLootTier(GetSearchLootTierGroup());
@@ -46,4 +46,4 @@ bool ABuildingContainer::SpawnLoot(AFortPawn* Pawn)
}
return true;
}
}