CmdRequestToDestroyMyVehicles() now explodes vehicles

This commit is contained in:
in0finite 2020-06-20 16:19:46 +02:00
parent bd37b9f577
commit b9852975af

View file

@ -125,7 +125,7 @@ namespace SanAndreasUnity.Net
void CmdRequestToDestroyMyVehicles()
{
F.RunExceptionSafe( () => {
this.DestroyPlayersVehicles();
this.ExplodePlayersVehicles();
});
}
@ -138,6 +138,15 @@ namespace SanAndreasUnity.Net
}
}
void ExplodePlayersVehicles()
{
m_myVehicles.RemoveDeadObjects();
foreach (var v in m_myVehicles)
{
v.Explode();
}
}
public void RequestTeleport(Vector3 pos, Quaternion rot)
{
this.CmdRequestTeleport(pos, rot);