24.01.2014, 10:07
So I have 500 houses, 750 hidden presents, 10 healing zones, 5 safe zones, and a whole bunch of miscellaneously coded areas I check on these functions, I'm wondering if there's an efficient way besides if checking against pickupid/areaid as I can foresee lag coming of this as sometimes it has to check over 2000 IDs to find the place the player entered and respond accordingly.
tl;dr, better way than for and if checking IDs on large functions?
tl;dr, better way than for and if checking IDs on large functions?

