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"

BluePrint Array Sort

Hello! I currently have an array that is used to create patrol points for my AI. It worked up until I moved a patrol point and now the order my AI walks between the points has moved from Patrol Point 5, Patrol Point 6, Patrol Point 7 to Patrol Point 7, Patrol Point 5, Patrol Point 6. Naturally this is an issue.

My question is what would I have to do to sort these actors to use the points in ascending order? alt text

Product Version: UE 4.20
Tags:
capture.png (142.2 kB)
more ▼

asked Nov 18 '18 at 07:22 PM in Blueprint Scripting

avatar image

Amkzul
30 2 6 9

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

3 answers: sort voted first

The low-entry extended standard library has a sort array by comparator function, which is what you'd need here.

https://www.unrealengine.com/marketplace/low-entry-extended-standard-library

alt text

sortle.png (44.7 kB)
more ▼

answered Nov 18 '18 at 07:28 PM

avatar image

Sertac Ogan
1.5k 30 10 46

avatar image Amkzul Nov 18 '18 at 07:50 PM

Ran into a bit of a snag any clue what im doing wrong? alt text

capture.png (71.0 kB)
avatar image Sertac Ogan Nov 18 '18 at 08:08 PM

alt text

howto.png (11.9 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Awesome thank you for pointing this out. Ill give it a try.

more ▼

answered Nov 18 '18 at 07:39 PM

avatar image

Amkzul
30 2 6 9

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

Got it working I had the type as my actor not object reference. Thanks again!

more ▼

answered Nov 18 '18 at 08:09 PM

avatar image

Amkzul
30 2 6 9

(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