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.

OneManArmy

Script for weapon (delay effect)

Recommended Posts

Q. How to use this script?
A. Just drop this script on root of your weapon GO and adjust all parameters in Inspector.
 

Please login or register to see this code.
  • Like 16

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

Im using second script to get this effect. Made it based on this script...

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

GO = GameObject.

Weapon GO = GO which holds your weapon (under which you parent your weapon model).

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

it is animation, not any effect made by script.

  • Like 1

Share this post


Link to post
Share on other sites
Please login or register to see this quote. Hmm... and why don't you look in FPS Kit 0.9?

Weapon moves(by animation), when you walk or run?

Share this post


Link to post
Share on other sites

i didnt understood your question? Ok, then answer me - where is difference between animation on the weapon and camera?

The same way, as you calling for animation on weapon, you can run animation on camera.

I only can suggest you, to put your camera under empty GO and animate this empty GO.

P.S. I'm calling for animations (on camera) only when holding down shift (on run), so i really don't understand what effect you mean.

Maybe you mean effect on camera when i'm turning (looking around)?

On weapon and cameras, i have 5 (effects + animations):

1. Animation on main camera - only, when player runs forward.

2. Animation on weapon camera - when walking and running..

3. Deley effect on weapon (script in this topic)

4. Angle effect on weapon - when moving sideways.

5. Angle camera, when turning player with mouse (looking around).

So, they are blending together.

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

it's not working on camera, but on GameObject above camera. I'm not using transform.localPosition, but angle it.

Share this post


Link to post
Share on other sites

oma, do you think you can post the camera sway script based off this one onto the forums? i have been trying to tool around with this script and just cant get it done

Share this post


Link to post
Share on other sites

TY!

Can you upload or just explain how to make:

HP / Score Bars

Radar

Download the Gun model + hands and anim

ty vm agine

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×