- Home /
Question by
bobflopskills · Aug 14, 2011 at 09:42 AM ·
ammoreloading
how to reload
i need the script for making the reload animation play when my ammo drops to 0 and when i press r please help
Comment
There isn't any "the script" for this. It depends on how your script and scene setup is made.
Answer by john-essy · Aug 14, 2011 at 10:54 AM
Do 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
}
This is much easier in C#:
public void Update ()
{
if(ammo <= 0)
{
Animation.Play("Reload Animation");// The name o you anim goes inbetween the brackets
}
Your answer
Follow this Question
Related Questions
having trouble with ammo reload script. destorys extra ammo 1 Answer
How do I add ammo and reloads? 1 Answer
Gun - Ammo , reloading and UI problem. 1 Answer
How do I get Single ammo reloading to work? 0 Answers
reloading? 1 Answer