English How to detect item disappearing?

8 replies
Goto Page
To the start Previous 1 Next To the start
Up
Gaios
Reviewer
Offline Off
How to detect (hook) whenever an item disappear from a map? And what command does set the time period?

If there's no hook, what's the best solution to detect it w/o
item(0, 'table')
command?
09.08.19 03:49:42 pm
Up
G3tWr3ck3d
User
Offline Off
Pay me and I tell
Mess with the best, die like the rest. ༼ つ ◕_◕ ༽つ
09.08.19 03:52:53 pm
Up
Mami Tomoe
User
Offline Off
On drop start a timer that'll count down from the server's set item de-spawn time, it will call a custom hook function with whatever parameter you gave it, should be the internal item id.
It's hard being the best girl in the whole entire world
11.08.19 04:08:19 pm
Up
DC
Admin
Offline Off
There is no hook for that yet.
I will add cs2d lua hook itemfadeout to the next version.

Probably what user Mami Tomoe said is the most efficient solution in the current version.
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
11.08.19 04:22:10 pm
Up
Mami Tomoe
User
Offline Off
@user DC: You forgot to document what return 1 would do at the bottom.
Also ypos.
It's hard being the best girl in the whole entire world
11.08.19 04:46:01 pm
Up
DC
Admin
Offline Off
@user Mami Tomoe: Display bug. fixed. Thanks √
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
12.08.19 10:02:13 am
Up
Gaios
Reviewer
Offline Off
@user DC: Can't you add hook? It will be better.
12.08.19 10:31:26 am
Up
Mami Tomoe
User
Offline Off
user DC has written:
There is no hook for that yet.
I will add cs2d lua hook itemfadeout to the next version.

Probably what user Mami Tomoe said is the most efficient solution in the current version.


@user Gaios: Use what I said until the next update.
It's hard being the best girl in the whole entire world
12.08.19 03:00:09 pm
Up
Quattro
GAME BANNED
Offline Off
user G3tWr3ck3d has written:
Pay me and I tell


Wrong forum, buddy
To the start Previous 1 Next To the start