i need the script for making the reload animation play when my ammo drops to 0 and when i press r please help
1 Answer
1Do you have an animation? if so you could do this
function Update ()
{
if(ammo <= 0)
{
Animation.Play("Reload Animation");// The name o you anim goes inbetween the brackets
}
There isn't any "the script" for this. It depends on how your script and scene setup is made.
– StatementWhenever I have need for a script, I write one. :-D
– CHPedersenSetting them from the parent and grabbing the materials from assets works. I can't get my prototype to break in the way you described. I think I would need to see the whole scripts to maybe solve the this.
– Mokomaki