so i’ve realised i haven’t quite correctly explained it so the default value of the array is 0x 0y 0z eventho i clear the array on begin play.
i spawn in the first actor. It doesn’t set the new location value correctly. Afterwards i spawn in a second actor which for some reason makes the correct value pop up for the second location but not the first and then i spawn in a third actor and when i print out the array it prints all the values even the first.