11.07.2016, 19:09
I'm guessing your function loops through the player's weapons or something like that.
You shouldn't do that, because if you call it multiple times, you're looping multiple times. It's a waste.
Either make the function suggested by Nero_3D, or just loop once and check, without using a special function for that.
You shouldn't do that, because if you call it multiple times, you're looping multiple times. It's a waste.
Either make the function suggested by Nero_3D, or just loop once and check, without using a special function for that.