obj/items
BagSeeds
name = "Seeds"
icon = 'items.dmi'
icon_state = "Seeds"
layer =99
DblClick(mob/M)
set src in oview(0)
var/obj/items/Seeds/S = new/obj/items/Seeds(usr.loc)
del(src)
sleep(100)
del(S)
var/obj/items/Corn/C = new/obj/items/Corn(src.loc)
C.o = usr
Corn
icon = 'vegetable.dmi'
icon_state = "corn"
Seeds
icon = 'items.dmi'
icon_state = "seedplanted"
ID:145430
Mar 22 2006, 5:42 am
|
|
Mar 22 2006, 5:54 am
|
|
You're passing an argument for no reason, and when you del(src), the proc stops.
|
In response to Mysame
|
|
del(src) is too get rid of the bag of seeds -_-
|
In response to Andrew001
|
|
I know that, but since you've deleted the object the proc is running on, the proc stops.
|
In response to Mysame
|
|
ok then but is there any other way to get of it without useing del(src)
|