No problemo…
So, keep them in an array ( like in the pic ), and have an int to show which trigger is the current one.
You can setup an array of triggers in the level BP:
I only set the first one, but you get the idea. You have an int which tells you which is the current target. Then you can make a function which gives the distance to the current target:
You call the function like this:
Or, if you want to be snazzy, you can make the function ‘pure’
Then, the call looks like this:
Tell me how you do…