world
New()
new /mob/BeyM/Ray(locate(4,4,1))
mob
var
player_mob
mob
Login()
if(src.client.mob == src)
..()
src.player_mob = client.mob
world << "Welcome, [src]"
src.loc = locate(1,1,1)
mob
BeyM
Bump(mob/BeyM/A)
if(istype(A,/mob/BeyM/))
new /obj/Sparks(src.loc)
walk_away(A,src,5)
walk_away(src,A,5)
mob
verb
Summon()
//var/player_mob = client.mob
var/mob/BeyM/Ray/R = new(usr.x,usr.y,usr.z)
R.owner = src
client.mob = R
mob
verb
Return()
client.mob = player_mob
Problem description: I'm able to change to the BeyMonster, but i can't change back. I've tried every single way i could. Also, it always sends me to the starting place when i change into the BeyMonster can anyone help me?
If you will have instances of world/New() defined elsewhere, remember to call ..(); if this is and will be the only one, you do not need ..() since there's no default action for it in DM.
Try setting player_mob as src rather than client.mob; see if that helps resolve your issue.