ID:147377
 
I'm having a problem with moving an item from one turf to another via a third party object.

verb
move()
set src in oview(1)
var/a = locate(/turf/transporter/transpad/epad)
src = a
src.contents = locate(/turf/transporter/transpad/fpad)



I've tried a few variations on that. I don't get any errors when I compile it. When I put something on the transpad turf, and execute the verb, the object simply disappears, and fails to reappear at the fpad turf.

Its like the transporters in TOS, but worse!
Gathin wrote:
verb
move()
set src in oview(1)
var/a = locate(/turf/transporter/transpad/epad)
src = a
src.contents = locate(/turf/transporter/transpad/fpad)

I don't see how that is supposed to work, but if you want the transport pad to teleport everything on it to some other pad whenever its move verb is used, you could do something more along these lines:
turf/transporter
fpad
verb/move()
set src in oview(1)
var/turf/transporter/epad/a=locate()
for(var/obj/O in contents)O.Move(a)
epad
In response to Loduwijk
Not quite what I meant, but with a little fiddling I finally got it to work. Thanks.