How do I make this script work?
function SetNeighbors (left : Terrain, top : Terrain, right : Terrain, bottom : Terrain) : void
Example: Terrain 1 is right next to Terrain 2. Do I have to rename anything in the script? Please help, still relatively new at this.
you don’t have to rename anything.
you just have to pass valid terrain references from your terrain objects in there.
also, as pointed out in the docs, don’t forget that this must be called in both direction so on terrain1 that terrain2 is a neighbor and on terrain2 that terrain1 is a neighbor