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)

103 posts in this topic

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.
15 people like this

Share this post


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

yes, ofcourse.

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

thks and sorry i put already the delay effect but can you say how can we add the move delay effect

; its amazing

thks OMA

Share this post


Link to post
Share on other sites

when you go back delay effect , when you go left delay effect ........

delay effect when character is moving

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.

1 person likes this

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

you didnt understand me ; i said that the camera bob at move direction like in your videos of call of duty remake , when you moves back the delay efect

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

Thanx you ой чето забыл =)))) Спасибо огромное за скрипт =)))))))))))

Share this post


Link to post
Share on other sites

Amazing! Now above someone asked about camera movements. How exactly do you get it to work on camera?

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