ID:176763
 
can someone explain to me how to use this? for now, i just want to have it so my character at least shoots something, preferably in a straight line(in the direction he's facing). for example's sake, let's say i have an icon in the file projectile.dmi, and it's icon state is bullet. the character is in the file person.dmi, and it's icon state is shooter. i just want to know how to use the missile command to get the "shooter" to shoot the "bullet". thanks.
ok, i figured out how to shoot the bullet...in a way. it doesn't shoot in a straight line, it shoots at my character. here's a code snippet:

obj
bullet
icon = 'projectile.dmi'
icon_state = "bullet"

mob
verb
shoot()
missile(/obj/bullet, usr, loc)

any ideas? thanks.
In response to EnjoiStaticX
The missile proc is only visual. You'd need to use the walk() proc. Maybe something like:

obj
bullet
icon = 'bullet.dmi'
New(mob/owner)
..()
walk(src,owner.dir)

mob
verb
Fire()
new/obj/bullet(usr)
In response to Xstream Sage
alright thanks, i'll try that.