ID:144870
 
Code:
input("What Teleport do you wish to acess?") in list(new/turf/Teleport_Beacon)


Problem description:How would I declare the object picked so I can put something like usr.loc = O.loc... I know its a stupid question but I just dont know how
EDIT:I figured it out i think: var/obj/O = input("What Teleport do you wish to acess?") in list(new/turf/Teleport_Beacon) ...yeahh that didnt workk


var/a=input("What Teleport do you wish to acess?") in list("Teleport Beacon","Cancel")
if(a=="Teleport Beacon") usr.loc=locate(x,y,z) // set x y z here

And it's Developer How-To
In response to Ripiz
the problem is, that doesnt list all the teleport beacons
In response to WarLin
var/list/beacons=new()
for(var/turf/Teleport_Beacon/B in world) beacons+=B
input("What Teleport do you wish to acess?") in beacons
In response to Ripiz
thanks