mob
verb
Missile()
missile('Missile.dmi',usr,usr.dir)
HENDRIX<<<
ID:177199
Oct 15 2002, 7:42 am
|
|
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<<< |
<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>