ID:155137
Sep 5 2011, 7:48 pm
|
|
I was curious how use a verb to summon a item and then after a set amount of time the item would vanish from the players inventory
|
In response to Hashir
|
|
Something like this:
mob/proc/summondelete() Probably not the best way to do it but it works |
In response to Dj dovis
|
|
No usr in procs.
|
In response to Dj dovis
|
|
That would cause errors if you pick up multiples of the same item.
|
obj/TimedDelete |
In response to Dj dovis
|
|
The if(O) is unnecessary, for() already checks if it exists.
|
In response to Darker Legends
|
|
I figured it out
|
Just use a proc which will be called by summoning an item. Then by using sleep(), you can easily set a time before an item vanishes/gets deleted etc.