Forum

> > CS2D > Scripts > How to recognize IID for certain action issue
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch How to recognize IID for certain action issue

22 Antworten
Seite
Zum Anfang Vorherige 1 2 Nächste Zum Anfang

alt Re: How to recognize IID for certain action issue

Mora
User Off Offline

Zitieren
I thought it working like the whole items table:
items={}
and keys working as values which game nil
items{
1,
2,
3}
removeitem 2
items{
1,
3}
spawnitem p228
items{
1,
2,
3}

Well. Anyway i made custom fade out for them through second hook

alt Re: How to recognize IID for certain action issue

Devil-Thanh
GAME BANNED Off Offline

Zitieren
@user Mora: the table actually is
1
item = {[1] = iid1, [2] = iid2, [3] = iid3}
or
1
item = {iid1, iid2, iid3}
when you removeitem iid2, it becomes
1
item = {iid1, iid3}
and when you spawnitem new item, it becomes
1
item = {iid1, iid3, iid2}

So, #item(0,"table") is not the IID of the newest spawned item, but
item(0,"table")[#item(0,"table")] is the IID of that newest item

Yeah, and I just show you how to get the iid of the item that you spawned
2× editiert, zuletzt 30.11.17 16:55:57
Zum Anfang Vorherige 1 2 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht