ID:179433
 
I am trying to make a Bump()
and i cant quite get it
i read the f1 thing about it and it said to do Bump(mob/obsacle)
well i did and nothing happened
this is what i have
mob/Imp
icon = 'Imp.dmi'
Bump(mob/Imp)
Battle()
i dont know what else to do
i have tried
Bump(mob/Imp in oview(1))
and that doesn't work so i dont know what to do. So can someone please help me
Thanks alot
You have it the wrong way. I had this problem too. Unlike Click(), where src is the thing that's been clicked, Bump()'s src is the things that's bumping, and the "mob/obstacle" is the thing that's getting bumped. Try doing something like this:
mob/Bump(mob/M as mob)  //M is the thing getting bumped
if(istype(M,/mob/imp)) //Do this only if you're bumping an imp
Battle(M) //Battle the imp

That should be more or less what you're looking for.