ID:270616
 
In my game, when people log out, there characters stay there, and when they login, they go back to their character. How would I fix this?
Delete their character on logout.

Look up del() and Logout() if you're still not following me.

*Edit*
Beat you by half a second ;)
Critical Productions wrote:
In my game, when people log out, there characters stay there, and when they login, they go back to their character. How would I fix this?

When they Logout(), that just means they've disconnected from the mob. You still need to delete the mob.

Hiead
So would it be...
mob/Logout()
..()
del src.client.mob

?
In response to Critical Productions
No, Logout() is under /mob, so src would be the mob you want to delete. No need to go in a circle ;)
In response to DarkCampainger
I tried doing del src, but it didn't delete it.
In response to Critical Productions
What about:
mob
Logout()
del(src)
..()


Does that work?
In response to DarkCampainger
No.
In response to Critical Productions
Critical Productions wrote:
No.

Then you probably have another mob/Logout() somewhere that isn't calling ..() to let other mob/Logout()s run.