obj/torch/verb/Get()
set name = "Pick Up"
set category = "ACTION"
set src in oview(1)
loc = usr
usr.luminosity = 2
sleep(500)
var/obj/torch/T = new(loc)
return
Problem description:
Objects.dm:13:warning: T: variable defined but not used
Even though it's a warning, it still doesn't work. I feel like I'm making a really silly error but since I'm new to coding in DM, I'm not so sure how to fix it or make it work.
I'm aiming for it to work like this:
User grabs torch. > Torch respawns.
T is being defined as a new obj then you are relocating it aka respawning it.