Sorry to trouble you guys out there, but I need a full script for weapons assault rifle, pistol and rocket laucher. Sorry, I have a big problem with scripting.
P.S. Is it possible to use weapons on a car game, as in a game that you drive cars and can target, aim and fire???
P.P.S can give full script (from start) thx
This site is not for us to write your scripts for you! Go to the tutorials section on the unify wiki, and learn some things. As for your PS question, well, yes of course, as long as you can solve the design issues surrounding multiple confliction control schemes!
no, no and no, we’re not your personal script army, we can however help you learn how to create said scripts, which isnt too hard, mind you.
For a regular assault rifle, you want to look into raycasting: Clicky, as for rockets you can spawn a rocket object, and have it move towards a destination, when the rocket reaches its destination it explodes, and if you’re using physics for your game you can use this piece of code. add some particle effects for the smoke and fire.
You can use a weapon which is mounted on a vehicle, just add the gun as a child to the car and use the raycast to decide where its supposed to hit.
I dont think you realise how much time it really takes to make a piece of script like this, so i doubt you will find anyone who will just make half a game for you
For an introduction to scripting in Unity you can always go through unity’s basic tutorials which are located here, here and here
You can also look at the Tornado Twins tutorials on youtube.
if you combine the tutorials below in one way or another you should be able to make a game where you can fire rockets and bullets from a car. Good luck with your game.
This site is not for us to write your scripts for you! Go to the tutorials section on the unify wiki, and learn some things. As for your PS question, well, yes of course, as long as you can solve the design issues surrounding multiple confliction control schemes!
– syclamoth