ID:2236802
 
(See the best response by Kaiochao.)
At the moment I am trying to make a simple bump. Player bumps into object or mob, object or mob reacts.

Code:
mob
Bump(atom/A)
if(istype(A,/obj/test))
del(A)
if(istype(A,/mob/))
view()<<"HEY [A]"


Problem description: The bump does not work at all, I have tried it on other sources and games and it does work. I thought it was the way I set up the movement, but I set movement back to the basic simple method and it still did not work. These are just simple tests I tried to get it to work, but I can not figure out how to do it correctly.

Best response
You're going to have to be more specific since your example works perfectly fine in a new environment. Maybe show more of your movement-related code.

What might be going wrong:
* This code isn't being reached due to a later override of mob/Bump() that doesn't call ..().
* You're expecting Bump() to be called in some situation where it isn't actually supposed to be called.
* You're using a library that's screwing it up somehow.
* This code isn't actually included.
In response to Kaiochao
Thank you, I read through your list and I saw that I had an extra Bump() that was making it so the one I was testing would not work. I now fixed it and it works as it should. Thank you again!