1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-10 15:20:29 +01:00

Modified driver collection

This commit is contained in:
Rich Dunne 2021-07-07 07:28:21 -06:00
parent 17135760b4
commit 7c009e0f5b

View file

@ -69,12 +69,10 @@ namespace SceneManager.Utils
nearbyCollectedVehicleOtherPath.Dismiss(Dismiss.FromDirected, path);
}
Game.LogTrivial($"[Direct Driver] Adding {nearbyVehicle.Model.Name} to directed path.");
path.CollectedPeds.Add(collectedVehicleOnThisPath = new CollectedPed(nearbyVehicle.Driver, path, targetWaypoint) { Directed = true });
//collectedVehicleOnThisPath.Directed = true;
collectedVehicleOnThisPath.Tasks.Clear();
var newCollectedPed = new CollectedPed(nearbyVehicle.Driver, path, targetWaypoint) { Directed = true };
path.CollectedPeds.Add(newCollectedPed);
//collectedVehicleOnThisPath.Tasks.Clear();
}
//GameFiber.StartNew(() => collectedVehicleOnThisPath.AssignWaypointTasks(path, targetWaypoint));
}
}
}