proc/kill(mob/M as mob in world)
M.loc=locate(50,50,4)
M.Deaths+=1
DeathCheck(mob/M as mob in world)
if (M.HP <= 0)
world << "[src] dies!"
M.kill()
(the two different codes are in different places )
Problem description:
Ok so the code compiles perfectily fine. When i run the game and i use a kill verb or shoot something to kill a mob/usr, i get this error :-
runtime error: Cannot modify null.loc.
proc name: kill (/mob/proc/kill)
usr: Tyr (/mob)
src: Tyr (/mob)
call stack:
Tyr (/mob): kill(null)
Tyr (/mob): Kill(Tyr (/mob))
I cant seem to fix it =\ (its prob one of the simplest things).
any help will be appreciated, thanks ^^.
Odd...
Here you go...
Did it help?