Navigating to a random target point

if i have 10 target point how can i choose one random for navigate to it?
(sorry for my bad english,i’italian)

Hello, I am still learning blueprints so I’m sure there is a better way to do this (and hopefully someone will correct my method for my own sake) but this should work for you: Run whatever event you want to send the player to a random point through Switch on Int, set your ‘Simple Move to Location’ Controller to your Player Controller and your ‘Get Actor Location’ Target to your Target Point actor.

Copy paste and do this for each target point out of a different number. Random Integer will randomly grab a number 1-10 and send your player to whichever target point is assigned to that number.

Hello!

You can put those target points into an array and use the index of that array to access with your random generated integer.

how do you do that? I tried “Get All Actors of Class”, it returns an array, but I can’t get the array’s length or element. The error: Default value ‘’ for TargetArray is invalid: ‘Literal values are not allowed for array parameters. Use a Make Array node instead’

[EDIT]
The problem was execution flow: the “Get All Actors of Class” wasn’t executed at all. The second graph is corrected