proc
DeathCheck()
if (HP <= 0)
world << "[src] dies!"
del(src)
Problem description:my player does not die just goes to minus HP and how do i set a spawn location for when the player dies ?
ID:138752
![]() Dec 19 2011, 6:04 am
|
|
Code:
proc Problem description:my player does not die just goes to minus HP and how do i set a spawn location for when the player dies ? |
Kccmt wrote:
Guess it was a typo, it should be S.loc, not S:loc ln .dm:44:error: S.loc: undefined var |
mob/var |
PlucvbYoutube1 has Logged In
Connection died. it works in respect but the connection dies, and when a enemy attacks and hp goes below 0 i don't die |
PlucvbYoutube1 wrote:
PlucvbYoutube1 has Logged In Make sure there are no procs which stop mob/Login. They must have ..() after the lines. Also verify there are not del (src) randomly spreaded on your source. By the way, did you paste the few lines I posted about Spawn_Point? It was needed. |
Eternal_Memories wrote:
> mob Make sure the procs which take down the mob's hp call the death proc aswell. That src.loc=S:loc Why are you using ":" instead of "." ? I don't know if this makes any difference but I'm curious since "." just works fine. |
Please see here for an implementation that fixes some of these problems. Additionally, read the code. Try and understand what it does. Don't just copy and paste it, but learn from it to see how it works and how you can fix your problem.
|
TheProductions wrote:
Eternal_Memories wrote: > > mob Make sure the procs which take down the mob's hp call the death proc aswell. src.loc=S:loc Why are you using ":" instead of "." ? I don't know if this makes any difference but I'm curious since "." just works fine. I've always used : instead of . after for(var...) I don't remember why xD |
Make sure the procs which take down the mob's hp call the death proc aswell.