#a thread for debugging
1 messages · Page 1 of 1 (latest)
just make your Pickup() take the picked up weapon as a parameter
and store it somewhere
how?
sorry but I don't have time or will to walk you through every step
I can point you into directions
I can't figure out how.
with your current system you can try if (equippedAny[i]) continue;
in the for loop
if i understand your bool array mess correctly
(not an answer on how to add parameter to pickup, but how to skip your current gun in the loop)
that's exactly what I asked lol.
before
yeah and I had no idea what equippedAny is
yeah
the problem is that if the first gun (0 in the array) is equipped, it does nothing.
(it doesn't debug.)
is this correct?
although it shouldn't continue, should it?
I wanna ignore the currently equipped gun.
and set the index to the closest gun that's not the equipped gun.
if it's within the range.
(inRange)
continue skips to the next iteration..
as you could google, or study C#, but you just guessing your way thru
yeah because youre probably getting an error
yes
there's none.
ok
why would you check things first and THEN skip/continue?
can you test things for more than 3 minutes without saying 'doesn't work'
maybe
and try to figure it out yourself first