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

Added DismissOption.FromPlayer condition

This commit is contained in:
Rich Dunne 2020-10-10 20:09:23 -06:00
parent 5d1a17ed1f
commit 5ddcf3aead

View file

@ -54,6 +54,21 @@ namespace SceneManager
return;
}
if (dismissOption == DismissOption.FromPlayer)
{
if (Driver)
{
Driver.Dismiss();
}
if (Vehicle)
{
Vehicle.Dismiss();
}
Rage.Native.NativeFunction.Natives.x260BE8F09E326A20(Vehicle, 0f, 1, true);
VehicleCollector.collectedVehicles.Remove(this);
return;
}
if(StoppedAtWaypoint)
{
Logger.Log($"Unstucking {Vehicle.Model.Name}");