ID:145582
 
Code:
turf/Teleports
icon = 'turf.dmi'
icon_state = "teleport"
Teleport1/Enter(mob/a)
if(ismob(a))
a.loc = locate (1,1,4)
return ..()
else
return 0
Teleport2/Enter(mob/a)
if(ismob(a))
a.loc = locate(1,1,1)
return ..()
else
return 0


Problem description:
Both mess up =\ The first one, "Teleport1", when stepped on, just makes the screen go black, and I have to relog to get my vision back.
The second one, "Teleport2", does appear to move my character, but it doesn't move my view with it, so I'm left looking at the area I just exited. I can get my vision back to the character, by moving though.

What have I done wrong? It sure LOOKS right! Any help? Please and thank you's..
> turf/Teleports
> icon = 'turf.dmi'
> icon_state = "teleport"
> Teleport1/Enter(atom/movable/a)
> if(ismob(a))
> a.loc = locate (1,1,4)
> else
> return..()
> Teleport2/Enter(atom/movable/a)
> if(ismob(a))
> a.loc = locate(1,1,1)
> else
> return..()
>

This should solve your problem.

-Krow-
In response to Dark Krow
aaaah thanks ^^;