mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-22 20:13:02 +00:00
fix for choosing best weapon
This commit is contained in:
parent
fb580178ff
commit
7b8d2a1a1a
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,6 @@ namespace SanAndreasUnity.Behaviours.Peds.AI
|
|||
WeaponSlot.Heavy,
|
||||
WeaponSlot.Shotgun,
|
||||
WeaponSlot.Pistol,
|
||||
WeaponSlot.Hand, // switch to Hand if there is no ammo in other weapons
|
||||
};
|
||||
|
||||
|
||||
|
@ -178,6 +177,8 @@ namespace SanAndreasUnity.Behaviours.Peds.AI
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
_ped.WeaponHolder.SwitchWeapon(WeaponSlot.Hand);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue