turf/trigger
icon = 'trigger.dmi'
Entered(mob/M)
var/obj/D = new/obj/dart(locate(15,15,2))
walk(D,WEST)
return
obj/dart
icon = 'dart.dmi'
density = 1
Bump(mob/M)
if(ismob(M))
M << "You are hit by a flying dart!"
M.Hp -= 50
M.Death()
else
del(src)
It is supposed to mkae it so that when a trigger is stepped on, a dart flys out from one end of the hallway to another,and damages any mobs it hits. But for some reason, when it hits a mob, it gives me runtime errors, and it keeps shooting darts over and over again...i only want it to shoot one though! someone please help!