mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-24 19:27:16 +00:00
kill all peds and destroy all vehicles, including local
This commit is contained in:
parent
41b352ab4a
commit
f40c15c195
3 changed files with 3 additions and 9 deletions
|
@ -153,8 +153,6 @@ namespace SanAndreasUnity.UI {
|
|||
{
|
||||
|
||||
foreach (var p in Ped.AllPeds) {
|
||||
if (p == Ped.Instance)
|
||||
continue;
|
||||
Destroy (p.gameObject);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue