Forum

> > CS2D > Scripts > How to recognize IID for certain action issue
Forums overviewCS2D overview Scripts overviewLog in to reply

English How to recognize IID for certain action issue

22 replies
Page
To the start Previous 1 2 Next To the start

old Re: How to recognize IID for certain action issue

Mora
User Off Offline

Quote
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

old Re: How to recognize IID for certain action issue

Devil-Thanh
GAME BANNED Off Offline

Quote
@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
edited 2×, last 30.11.17 04:55:57 pm
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview