JustChill Posted February 18, 2021 Share Posted February 18, 2021 It might be possible that "GetItemCount" in your loop return something weird, which is also the reason why I rather use a variable to count and remove it one by one.Yet my script only takes specific items into account, not a databse of 10 chests and 719 objects.So yeah, that one-by-one loop might produce a lag when you take these much items into account. oO Link to comment Share on other sites More sharing options...
Pellape Posted February 18, 2021 Author Share Posted February 18, 2021 I did that first. That is old school cooding though... ;) There is a reason why we use some functions inside loops as stuff might change in the game from one frame to the other... Link to comment Share on other sites More sharing options...
Recommended Posts