ID:177199
 
I was wondering how you make a missile go the direction that your currently facing. I tried this but i doesnt do anything.

mob
verb
Missile()
missile('Missile.dmi',usr,usr.dir)

HENDRIX<<<
The effect of the missile() proc is purely visual; it doesn't actually shoot a missile. Try something like this:

<code>obj/bullet icon='bullet.dmi' density=1 opacity=0 Bump(atom/A) //Bullet bumps into A if (ismob(A)) //PUT CODE HERE TO DAMAGE A del src //Delete bullet (self) mob/verb/shoot() var/obj/bullet/B=new(src) //Create new bullet at self B.dir=src.dir //Make bullet face our direction walk(B,B.dir,1) //Move bullet in its direction, pausing for one tenth of a second between moves </code>