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
  • Thanks 1

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. 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

Join the conversation

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

Guest
Reply to this topic...

×   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.


×
×
  • Create New...