TypicalHB
(Hunter)
January 20, 2021, 5:40pm
#1
Not sure this belongs in Scripting Support, but whatever. How do I sort the order in which teams appear?
As you can see, the teams are a bit off. I want the owner to be at the top, staff below that, then member, then guests. So, how do I do this?
2 Likes
kodeti
(kodeti)
January 20, 2021, 5:44pm
#2
There should be old topics about this, try searching.
Hey guys! It’s me again. I was just wondering how to make a script that I have absolutely no idea how to write.
I am trying to write a script that places you on an in-game team based on your rank in a group
My issue is that the tutorials that I have found on YouTube, the DevForum and ScriptingHelpers do not work
I have looked all over the Developer Hub and the internet in general and have come across absolutely nothing
Thank you for helping me! I am a very amateur scripter and all th…
daslick
(daslick)
January 20, 2021, 5:48pm
#3
I think he wanted the teams to be sorted in a specific order, not how to sort/distribute the players through the different teams.
I suggest reading this
Currently there doesn’t seem to be a specific way that Teams are displayed on the player list. This makes it difficult for me as a developer to order teams in a predictable order that works for my game, regardless of order of instantiation, name of the teams, etc.
My request is a DisplayOrder property on the Team Object which can be any integer. Teams would be displayed in ascending order. The default value is 0.
E.g. Team A has a Display Order of 1 and Team B has a Display Order of 2. Team A …
If that doesn’t work, then make a custom GUI for your needs.
1 Like
kodeti
(kodeti)
January 20, 2021, 5:50pm
#4
Ah, ok. As you can tell I can totally read.
Point is, try searching before posting, if that helps.
1 Like
Auiyin
(Auiyin)
January 20, 2021, 7:26pm
#5
I think the the teams are sorted alphabetically, so if you tried [1] Owner, then [2] Staff, it might work
Teams are sorted alphabetically, you can reorganize them by putting numbers in front and deleting them after. Ex. 1Owner 2Staff 3Member 4Guest, then delete the first numbers. And your teams should be organized.
1 Like
but that wouldn’t look proffesional.
the [1] Owner, [2] Staff thing looks more proffesional.
BPilot253
(BPilot253)
April 7, 2021, 6:44pm
#8
They are actually not. They are sorted based on the order they were inserted in. Usually what I do is have a table with the teams data, then loop through it using ipairs and create the teams. This way the order will always be constant.