2
0
Fork 0
mirror of https://github.com/GTA-ASM/SanAndreasUnity synced 2025-02-24 11:17:11 +00:00

kill all peds and destroy all vehicles, including local

This commit is contained in:
in0finite 2019-06-24 00:31:53 +02:00
parent 41b352ab4a
commit f40c15c195
3 changed files with 3 additions and 9 deletions

View file

@ -153,8 +153,6 @@ namespace SanAndreasUnity.UI {
{
foreach (var p in Ped.AllPeds) {
if (p == Ped.Instance)
continue;
Destroy (p.gameObject);
}

View file

@ -65,11 +65,9 @@ namespace SanAndreasUnity.UI {
if (GUILayout.Button("Destroy all vehicles"))
{
var vehicles = FindObjectsOfType<Behaviours.Vehicles.Vehicle> ();
var vehicleToIgnore = Ped.Instance != null ? Ped.Instance.CurrentVehicle : null;
foreach (var v in vehicles) {
if (v != vehicleToIgnore)
Destroy (v.gameObject);
Destroy (v.gameObject);
}
}

View file

@ -18,9 +18,7 @@
- Gravity setting failed to load on windows - instead of 9.81, it's loaded as 981 - maybe it happens when float.ToString() gives e
- Camera can go through map objects
- When ped gets out of world boundaries while in vehicle, his body stays at the edge of world - don't constrain ped position at all
- Minimap does not follow ped
- Update controls window