mob/verb
Attack()
for(var/mob/M in get_step(src,src.dir))
if(M)
var/obj/Hit/H = new()
H += M.overlays
sleep(10)
H -= M.overlays
obj/Hit
icon = 'Hit.dmi'
New()
pixel_x = rand(0,5)
pixel_y = rand(0.5)
Problem description: Alright, for some strange reason, whenever I try to use the attack verb, I get the runtime error listed below. I honestly do not know what's wrong, although I've worked with attack verbs before -_-'
runtime error: type mismatch: Hit (/obj/Hit) += /list (/list)
proc name: Attack (/mob/verb/Attack)
usr: XeroXen (/mob)
src: XeroXen (/mob)
call stack:
XeroXen (/mob): Attack()
I am not sure if you can do that but ive never tried so try this.