How to give a score / value to different vector in an array

hi

i have an array with few vector inside it, and i want to do a set of different test to each vector.
so in every test i am doing (like check distance from enemy ect…) i will can give every vector in the array a score for the test(1 to 10)

at the end result i want to pick the vector that have the high score from all the array from all the test.( all in blueprint).

I am quite stuck in the implementation of this thing and I would be very happy for any help with this problem i have / direction

thanks in advance
leo

I am so confused by this right now haha What are you trying to do exactly with an array of “vectors”? What do you mean you want to give each “vector” a “test” and a “score”? What are you creating?

hi

thanks for the reply and sorry if i I was not clear enough (english is not my native)
what i am Trying to creat is a simple system that will give score for cover location for the ai - based on different factors.

the first thing i need to understand is how can i take the array with the location and give every vector inside the array a score

cheers

This is a very generic solution to put an array of different vectors through a number of tests to work out which vector in the array is consistently the closest to the locations you are selecting from, not very elegant but it will give you a result.

Have you checked out the [EQS System][2]? That is designed specifically for the kind of thing you are describing.

hi ruffhaus games

thank you very much for your help, sure you gave me something to learn from.

however its miising something that i need( i will try to explain):

when you did in your test - at the end of each test in your example you got a winner for the test, and that is not good for what i need. i need that after every test each item/vector will get different score, so after all the test i can sum the result for each vector ( 1 test + 2 test + 3 test = fir each vector)
that is Because I do not want an absolute winner in every test, I want to see who has achieved the best overall score in all the tests together

if you have any tought or direction i will be very happy to Hear them

thanks
leo

hi

just mange to figure a soultion (only testing) but the result are good( the test in the example is represent buy a random score)
i used set veraible (i didnt knew about them)

if someone has a beeter soultion i will be happy to hear …