Announcement

Collapse
No announcement yet.

Sort array of playerstates by variable int

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sort array of playerstates by variable int

    I'm trying to make an array of player states and add a umg result to list in order of score. Highest to lowest. hacing trouble figuring out how to do this.

    Few options came to mind but looking for a clean method.
    Inphidel / Brian - Developer of Ultraball
    http://www.ultraballgame.com

    Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!

    #2
    There's the get Player Array, inside Game Mode, that has all the player states from the server.

    Comment


      #3
      Right by I'm trying to sort them based on a blue they contain highest to lowest.

      Had a thought of something to check when I get home any server browser code that lest you sort the umg based on ping.
      Inphidel / Brian - Developer of Ultraball
      http://www.ultraballgame.com

      Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!

      Comment


        #4
        Originally posted by Inph1del View Post
        Right by I'm trying to sort them based on a blue they contain highest to lowest.

        Had a thought of something to check when I get home any server browser code that lest you sort the umg based on ping.
        Based on a variable. Score so every player state has a score int. I want to return the list in order highest to lowest or lowest to highest
        Inphidel / Brian - Developer of Ultraball
        http://www.ultraballgame.com

        Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!

        Comment


          #5
          Originally posted by Inph1del View Post
          Right by I'm trying to sort them based on a blue they contain highest to lowest.

          Had a thought of something to check when I get home any server browser code that lest you sort the umg based on ping.
          You can check already existing types of sorting in C++.

          This site can ease you since it has the c++ implementation.

          Victory Plugin has some extra sorting nodes for float and int, afaik.

          Comment


            #6
            https://youtu.be/Ckj4UN374lw

            I've created a blueprint routine for what I'm looking for so here it is for anyone else that may be looking
            Inphidel / Brian - Developer of Ultraball
            http://www.ultraballgame.com

            Don't shy away from bugs in your game. Don't play it as intended. Break your game so you can fix it!

            Comment

            Working...
            X