- Home /
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 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
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 :)
Answer by blackmethod · Jul 13, 2012 at 06:48 AM
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.
Lol at number 4 :/ .I believe i have seen those bone systems.Thanks.I'll definetly look them up :/