I set up a mine field in my game, but I would like to make the mine placement random so the player can’t memorize the route. Is this done procedurally? is there an easy way to do this?
Yea dude, this tutorial is really cool and covers that somewhere in the middle. Using a volume to spawn objects at random points inside of it.
Tutorials is for C++, not everybody wants to start with C++.
For random minefield you need to program it yourself.
Easiest way is to make grid blueprint that spawns same actor in grid like from -x to +x and from -y to +y, with defined space between grid cells.
When you have spawning those tiles. make some random spawning and check for doubles in same grid cell.
Or instead checking do random for probability if cell should have mine or not. Like random from 0 to 99 and if its more that 80 spawn a mine.
Then go trough all cells in loop, like you did in grid spawner.