ID:158539
 
Hey, I have a problem. On my RPG, if I quit/logout when a pokemon is still out, the pokemon freezes on the map. I can't seem to find a way to delete this when you logout.

This is what I did, when it was sent out I set a var

usr.SentOutPokemon1 = M (where M is the sent out pokemon)

And then on logout I set a nother var (not sure why, was having problems getting it to work so I tried something else)

var/SentOutPokemon = src.SentOutPokemon1 (also tried usr.SentOutPokemon1)

del(SentOutPokemon)

but this still doesn't work. The icon is still there.

Help Dx
Xyphon101 wrote:
del(SentOutPokemon)

but this still doesn't work. The icon is still there.

del SentOutPokemon
In response to AJX
Changed it to

mob
Logout()
world<<"<font color=red>[src] has logged out</font>"
var/SentOutPokemon= src.SentOutPokemon1
del(src)
del SentOutPokemon


at the bottom of send out I have

                    usr.SentOutPokemon1 = M

Didnt work
In response to Xyphon101
Why don't you just try del SentOutPokemon1 ?
In response to Xyphon101
Nothing will execute after del(src). Deleting an object stops all of its procs.
In response to Garthor
Garthor wrote:
Nothing will execute after del(src). Deleting an object stops all of its procs.

Thanks!