obj
Arrow
density = 1
icon = 'Arrow.dmi'
Bump(mob/M)
..()
if(istype(M,/mob/Enemy))
M.HP -= 5
del src
Problem description:
When the arrow gets to the enemy, it doesn't delete itself. It circles around the enemy.
ID:144820
Aug 15 2006, 8:27 am
|
|
Code:
obj Problem description: When the arrow gets to the enemy, it doesn't delete itself. It circles around the enemy. |
Aug 15 2006, 8:38 am
|
|
The problem is in your shooting code. I can't remember which (maybe it's all) but some of the movement processes don't actually Bump() their target.
|
In response to DeathAwaitsU
|
|
I'm using a click and shoot system, and I'm using walk_to to make the arrow move.
[EDIT] Fixed, you were right, walk_to doesn't Bump, so I changed to walk_towards. I also have another question, how do I display a statbar above monsters' heads? I can do it over players, but I can't do it over monsters. My statbar is based on Spuzzum's system. |