Is there a way to stop guns being destroyed when ammo is 0?
#7

Since 0.3z you can detect weapon firing state using OnPlayerWeaponShot. So using this you can check like if ammo is like near to or less than 2 ( if(ammo < 2) { ammo about to over } ). Because i am guessing that this callback count every single shot fired.
So maybe this might come usefull.
Else you can use a very quick timer or OnPlayerUpdate which aint the best thing to do though.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)