ID:176836
 
I need help on my attack code.
How can i make it so that when the player clicks on an enemy mob it moves to within one space of and faces the mob.

I would also like to know how to make a bump proc to make the user attack an enemy it bups into.
Thanks
Look up the click() proc in the help files. Also bump is easy. Heres my code for my NPCs who bump PCs in the Gauntlet.

Bump(mob/PC/P)
if(P.type == /mob/PC)
P.Death()
..()

Instead of calling the P.Death() proc put the HP commands in here like. P.HP -= src.Strength