proc/NewItemCounter()
sleep(25)
var/obj/wetness/O = new(null)
O.Move(usr.loc)
spawn(1) NewItemCounter()
Okay, this code looks to me like it should work fine, but when I run it it sleeps, creates the object, moves it to the usr's location, and stops. It doesn't even reach the spawn(1) because if you put a usr << "Bleh!" in between those two lines it doesn't show, it just stops at the O.Move(). What am I doing wrong?Oh and if I take the O.Move() proc out it works fine.
Besides an object called "wetness" sounding rather disgusting, I think the null part here might be causing the problem. I can't think of a reason why it wouldn't work, but there's no reason for it anyway. Just do
var/obj/wetness/O = new()
[Edit:] Also, using usr could be a problem of sorts.. I doubt its causing this, but it could conceivably do so in the future. Especially with multiple players.
-AbyssDragon