x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to sort multiple value in order ?

Hi, I'm currently making a mariokart with blueprints. I need to set up the positions of every player (actually 4) : 1st, 2nd ...

I need this to set up the "random" for getting items.

I decided to set up positions players comparing their actual lap, the last checkpoint they hited and the distance to the next checkpoint.

The checkpoints are triggers I put on the map along the road. When a player hit a checkpoint it actualize his checkpoint value(integer).

I succed to get all values from everyplayer in a same blueprint ( my GameMode blueprint) but I really dont know how to sort them.

I need first to check lap from each players, if some are equals I check the last checkpoint and if there is still equals value I check the distance from next checkpoint(wich is a float so there si no equality.

Any idea how to do that with blueprints ?

Product Version: UE 4.17
Tags:
more ▼

asked Jan 31 '18 at 02:58 PM in Blueprint Scripting

avatar image

Juliken
1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first
more ▼

answered Jan 31 '18 at 03:30 PM

avatar image

Sardorian
412 8 5 8

avatar image Juliken Feb 01 '18 at 11:14 AM

That's perfect to sort the distance to next checkpoint but I dont know how to verify when players are in same lap or checkpoint.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question