Spawn Actors Grid Formation

Nice, we are on to something here. So now the grid is always rotated with the actor. I will need some slight modifications to wrap this up.


^ 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)

  1. Offset the grid to start behind the line and go back from there. (I assume this is our X “direction”?)
  2. 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.
1 Like