14.02.2011, 09:45
You can't use cases in the code you posted. They are either in range or not. You would need the function to pass the entrance id, then switch that. (which isn't what you want) Stick with the code your using. You could consider using checkpoints or pickups they would make it alot easier and probably alot more efficient than range checking.