This code makes the user attack the M, not the object, but the object should be the one
mob
verb
Fire(mob/M as mob in oview(10))
new/obj/spl_projectile(usr.loc)
walk_towards(src,M,0)
ID:149081
Jul 10 2002, 4:47 am (Edited on Jul 10 2002, 5:08 am)
|
|
In response to Shadowdarke
|
|
Shadowdarke wrote:
Drafonis wrote: Thanks, but I fixed this problem using missile() |
You need to tell it to walk the projectile to the target.
mob
verb
Fire(mob/M as mob in oview(10))
<font color=#ffffa0>var</font>/obj/ spl_projectile/<font color=#ffffa0>P = new</font>(usr.loc)
walk_towards(<font color=#ffffa0>P</font>,M,0)