ID:141101
 
Code:
obj/garganta
icon='garganta.dmi'
density=0
New()
src.loc=locate(usr.x+1,usr.y,usr.z)
spawn(30)
del(src)

Entered(mob/O)
O.loc=locate(/area/portal/)
return 1


Problem description:

When they enter the object's location it doesn't locate them to /area/portal/ like I want it to...help?

Thanks!
-Nick
This is because Entered() is only called when you move into the object, not into the same location of it. You'd probably want something like:

atom/movable
proc
stepped_on(atom/movable/A)
stepped_off(atom/movable/A)

turf/Entered(atom/movable/A)
for(var/atom/movable/O in src)
if(O != A)
O.stepped_on(A)

turf/Exited(atom/movable/A)
for(var/atmo/movable/O in src)
O.stepped_off(A)


Then you can use stepped_on() and stepped_off().

In other news, you shouldn't be using usr in procs. In the case of that New() right there, the line is completely unneeded, just create it like so:

var/obj/garganta/G = new(get_step(usr, EAST))
In response to Garthor