How to pick random component inside an actor (With blueprint)

I have an actor with 4 arrow components.

I would like to choose one of the Arrows (Spawn Points_1_2_3_4) at random and get their location.
Basically I need to spawn a projectile from one of the arrows but I want to choose them at random.

What would be some ways to achieve this?

Thanks in advance!

  • Make an arrow component array
  • Add these components to array
  • Get a random integer in range node with 0 3
  • From the Array variable get a ref with that random integer
1 Like

Thanks!
For other beginners who can’t figure it out
(this is how it looks in bp)

2 Likes