How to shoot RPG rocket?

Hi,

I am making an FPS game where the player holds an RPG rocket launcher.

What script should I write to let the player shoot the rocket?

I tried to find any tutorial but didn’t find one.

Thanks in advance.

use instantiate to create the missile, then add force or change the velocity to make it move

http://docs.unity3d.com/Documentation/ScriptReference/index.Instantiate.html

I am subone, I don’t know why I can’t access my account:S
I just want to tell you that I don’t want to create a missile. Because as I said above this is an RPG rocket like this:
1178068--45330--$rpg-7-launcher.gif.
So I want to shoot the part called grenade. Can I do this with the help of above links you gave me.

Thanks.

there isn’t any “shoot rpg rocket” functions, creating the rocket is the same as creating any other object, the art part of it will be the only thing the defines it as a rocket.

so yes, using the links provided above you can piece together shooting the rocket, but if your very very new id suggest learning simple programming of creating objects first.