mob/proc
Control()
for(var/mob/D in world)
if(D:owner == usr)
if(!D.returned)
client.controlling = D
usr.client.perspective=EYE_PERSPECTIVE
usr.client.eye= D
D.owner:lock=1
else
client.controlling = usr
usr.client.perspective=MOB_PERSPECTIVE
usr.client.eye= usr
usr.lock=0
else
return
Problem description:
Using this code, I was trying to allow a player to be able to control other NPCs which works. However if you are in control of another NPC, save the game, and log back in, you are no longer able to control your original character. How do I fix this?