mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 19:02:21 +01:00
abundant update
complete looting rewrite, improve combining pickups, add debug printing logs, fix some agids, fix cheat summon, fix issue with vehicle spawning.
This commit is contained in:
@@ -184,11 +184,22 @@ static inline void SpawnVehicles2()
|
||||
static auto FortAthenaVehicleSpawnerClass = FindObject<UClass>("/Script/FortniteGame.FortAthenaVehicleSpawner");
|
||||
TArray<AActor*> AllVehicleSpawners = UGameplayStatics::GetAllActorsOfClass(GetWorld(), FortAthenaVehicleSpawnerClass);
|
||||
|
||||
int AmountOfVehiclesSpawned = 0;
|
||||
|
||||
for (int i = 0; i < AllVehicleSpawners.Num(); i++)
|
||||
{
|
||||
auto VehicleSpawner = AllVehicleSpawners.at(i);
|
||||
auto Vehicle = SpawnVehicleFromSpawner(VehicleSpawner);
|
||||
|
||||
if (Vehicle)
|
||||
{
|
||||
AmountOfVehiclesSpawned++;
|
||||
}
|
||||
}
|
||||
|
||||
auto AllVehicleSpawnersNum = AllVehicleSpawners.Num();
|
||||
|
||||
AllVehicleSpawners.Free();
|
||||
|
||||
LOG_INFO(LogGame, "Spawned {}/{} vehicles.", AmountOfVehiclesSpawned, AllVehicleSpawnersNum);
|
||||
}
|
||||
Reference in New Issue
Block a user