Random team spawns not working
#4

Yes, you can.
Although this would barely take up less (if any at all; visually it's less space but I have yet to think of a reason that would ask for this) space than spacing it out and you would sacrifice quite a bit of clarity. I wouldn't recommend it but you do you.


You can also add: return 1 to every if statement so that your code doesn't have to keep checking the other teams to find the correct one after already finding one. Alternatively, if you want to take up less visual space, you can use a combination of if and else if and then you don't have to return inside every statement.
You can also ditch the ifs and just use a switch statement for this part.
Reply


Messages In This Thread
Random team spawns not working - by stormchaser206 - 04.03.2018, 22:57
Re: Random team spawns not working - by AdamsLT - 04.03.2018, 23:53
Re: Random team spawns not working - by stormchaser206 - 04.03.2018, 23:58
Re: Random team spawns not working - by AdamsLT - 05.03.2018, 00:03
Re: Random team spawns not working - by Sew_Sumi - 05.03.2018, 00:21
Re: Random team spawns not working - by stormchaser206 - 05.03.2018, 00:57

Forum Jump:


Users browsing this thread: 1 Guest(s)