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)

105 posts in this topic

The video on the first page of the topic the camera is moving. How did you make the camera sway?

Share this post


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

That script is included in "CODKit" and only for Premium Members.

Share this post


Link to post
Share on other sites

it's reallllllly buggy with weapons in fps kit v1.0 but I messed around with it and got it the best I can :)

Share this post


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

nothing buggy with this script.

Share this post


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

It's buggy with the scar :P if you move your mouse to fast the camera will stay on the side of the scar. Can't aim straight sometimes etcetc :P.

Share this post


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

impossible :) This script is attached only on one game object. It means, it works on all weapons equally, and can't cause something on seperate weapon.

Share this post


Link to post
Share on other sites

Assets/Standard Assets/Scripts/Weapon Scrips/Delay Effect.js(30,1): BCE0044: expecting }, found ''.

Error

Share this post


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

maybe you give the line?

Share this post


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

in last lain you have DOT ".", but must be "}"

Share this post


Link to post
Share on other sites

Thank you very much for this script Oma, it works perfectly and is REALLY REALLY easy and simple to set up.

to the people having trouble: All you have to do is copy and paste the script into a new js doc and add it to the ROOT of the gun, or to a game object that is a parent to the weapon manager.

Share this post


Link to post
Share on other sites

It works wonderfully, can i ask for the same when player moves?

I mean, i've seen in some videos of gameplay when player moves their gun moves in the same way.

Share this post


Link to post
Share on other sites

can we use this script with no referancing? namely like our's? :d

oh edit: like own script? (free and without any user agreement)? :)

Share this post


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

i think NO

why you wanna use it like your own one anyway

Share this post


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

do as you wish.

Share this post


Link to post
Share on other sites

That script doesn't work with the camera. I've tried it, it doesn't rotate though, it just moves. It's great, but I don't know how to get the camera working.

Share this post


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

yeah, and i already see mistakes.

Share this post


Link to post
Share on other sites

minor changes and it seems to be working fine...

Please login or register to see this code.

and btw .. what was the mistake?

Share this post


Link to post
Share on other sites

how the hack are there bird sounds there is no wood :d lol

i hate helicopters :P lol francic

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