Hi.
I have a series of objects with a specific tag in the scene. I need to for loop through all these objects, read their positions, and store them in an array. I’m trying to figure out the sintax but need some help. Thank you.
Here what I have so far:
npc_spawn_point_tag := class(tag){} #Define the tag
var MyPositions : []vector3 = array{} #Create the Array
OnBegin<override>()<suspends>:void=
TaggedList := GetCreativeObjectsWithTag(npc_spawn_point_tag{})
for (TaggedActor : TaggedList):
if (Prop := creative_prop[TaggedActor]):
Print("Prop found with npc_spawn_point_tag at position:{TaggedActor.GetTransform().Translation}")
Now I need to populate the defined array MyPositions with these vector3. Can you help?