x


Could anyone help me with this weapon script?

I'm sorry if what i am about to say sounds demanding...

I want these functions for my guns:

..Right click to view in aim/scope/Iron sights mode

..Able to zoom in (without having aimed in like above),e.g instead of pressing,holding down RMB will show me a closer view without the gun having to move.

..Able to perform sprint animation (left...right...left right...running) with slight camera bobbing

..Weapon does not pass through wall (Yes,mesh collider did not help)

Thank you for your time if you will help me with this and how i could go about applying it to the game.

I don't have coders on my game,in http://fact.It's just me and my friends as highly possible voice actors. So i don't know code,but hey,i learn from experience.Thanks

more ▼

asked Jul 13 '12 at 12:18 AM

King_Hermy gravatar image

King_Hermy
6 4 5

imo, the scripts and functionalies you need have intermediate to hard difficulty..

i suggest you to see introduction tutorial about controlling camera, animation, & rigid body. After you understand how those things work, i think it would be easier for you.

this link will give a good snapshot & example about that: http://walkerboystudio.com/html/unity_training___free__.html

hope it helps :)

Jul 13 '12 at 03:07 AM robeth
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

For #1 you're gonna probably want to set up a bone system that also attaches to your gun object, just look up bone systems unity and you should get a good idea.

2 Same diff, not clear enough anyhow

3 Make it so the character itself bobs with the camera attached to it

4 Good luck, commercial fps games don't do that.

more ▼

answered Jul 13 '12 at 06:48 AM

blackmethod gravatar image

blackmethod
63 24 28 34

Lol at number 4 :/ .I believe i have seen those bone systems.Thanks.I'll definetly look them up :/

Jul 13 '12 at 11:53 AM King_Hermy
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3791
x534
x446
x183
x40

asked: Jul 13 '12 at 12:18 AM

Seen: 317 times

Last Updated: Jul 13 '12 at 11:53 AM