ID:170591
 
Well, i havent quite figured out how to have a person step onto my warp pad, and teleport to another,can anyone help me out?
If you're using a turf for a warp pad, it would go something like this:

turf
warppad
var/dest_x
var/dest_y
var/dest_z

Entered(atom/movable/A)
A.loc = locate(dest_x, dest_y, dest_z)
// insert special effects here


If you want to use an object for a warp pad, you'll need a Bumped() proc. Do a search for "Bumped(atom/movable/A)" if you need to find out how to make one.

obj
warppad
var/dest_x
var/dest_y
var/dest_z

Bumped(atom/movable/A)
A.loc = locate(dest_x, dest_y, dest_z)
// insert special effects here


You can also use Move() instead of setting the loc var, but Move() will refuse to transfer victim if the destination is null, dense, or occupied, etc...
In response to Foomer
ya but if im doing a dragonball game and need to teleport a char to snakeway after death how do i do that??
In response to EkstreM
Easy, send them to an area or change their cordinates.
;p
If you read Zilal's tutorial, that should be pie.
In response to Hell Ramen
so read it but i dont get it (not the tutorial,how to get them on snakeway).what you mean change their cordinates?

i cant seem to get it
In response to EkstreM
src.loc = locate(13,37,1)
src.loc = locate(/area/snakeway)
And there's a few more ways.