obj
LittleRootTown
PokeBalls
icon='Objects.dmi'
icon_state="pokeball"
var/PokemonToGive
verb/Interact()
set src in oview(1)
set popup_menu=0
set hidden=1
if(usr in Oview(1,src))
else return
proc/Oview(var/dist, var/atom/A)
var/list/objects = oview(dist, A)
for(var/object in objects)
var/dir_to = get_dir(src,object)
if(dir_to & dir_to - 1)
objects -= object
return objects
i'm trying to make the player interact with one of the pokeballs by pressing z
but when i press z this menu opens up with all the pokeballs and im trying to only let the player interact with the one directly in front of him, how do i do that?