I need to spawn my vehicles in a grid formation at the starting line. It is working (kinda) but when I rotate the stating line actor the grid is no longer oriented to the actor and I do not know how to make it do so. How can I make the grid columns always “go right” in relation to the actor right vector no matter what rotation the actor has in the world?
^ I am using an arrow component as the location to start the grid, it needs to go “right” (Y) number of columns, and then go “back” (X) number of rows until no more to spawn.
^ This shows the grid (correct orientation per your suggestion, many thanks), but as you can see I need to offset that center point so that the start is before that dashed white line I drew, then go back from there.
^ This is the script I am working with now, much more simple thank you, but I assume we need to hack it up a little to get the exact result I need. (I am saving these locations into an array that the game mode uses as spawn locations)
Offset the grid to start behind the line and go back from there. (I assume this is our X “direction”?)
The overflow needs to be the next row, after 4 columns go to next row, and only for the total amount; say 8 vehicles only need 8 locations, that would be 4 columns and 2 rows.
Editing that macro caused constant engine crashing, so I copied that into the function. So I need to get index 0 at the top left, then add columns to the right and the rows go down. I have tried all sorts of hackery but I am not getting it. What can I change to make that happen?