mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-14 16:27:19 +00:00
CmdRequestToDestroyMyVehicles() now explodes vehicles
This commit is contained in:
parent
bd37b9f577
commit
b9852975af
1 changed files with 10 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue