Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
Sign in to follow this  
jemy1234

AU FPS KIT NEED HELP!

Question

HI i use a au fps kit project i have a problem with reload i can't make 2 reload

 

reload tactical and empty reload anyone can help me!

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 1

if you are asking for it to be able to use 2 animations, one for normal and one if empty just goto where it activates the reload in the weapon script and copy everything then make an if-else statement, paste all that in the else and paste it again under the if, except change the animation it plays to the other animation you want. 

you could do like

public class reload

if (reloadTactical == true){

put script to reload tactical here

if (ammo = 0){

put script to play empty reload here

}

if (reloadTactical == false && Ammo > 0){

put normal reload script for playing the default animation here

}

 

btw thats just a concept, do not try actually copying and pasting that it will not work

  • Like 1

Share this post


Link to post
Share on other sites

  • 0
Please login or register to see this quote.

Learn Unity and how to program a little then come back, you can expect everyone to do your dirty work for you.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...