IWantMyMod Posted September 23, 2018 Share Posted September 23, 2018 Is there any way to get the cells adjacent to the current cells in a script? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted September 23, 2018 Share Posted September 23, 2018 A round about way maybe...You could place a small object in each cell. On this object, place a script. That script would use OnCellAttach event and use GetParentCell on the object itself. With the OnCellDetach event clear whatever variables used to store the fact that that cell was attached. But that is just speculation, there may be a better method. Link to comment Share on other sites More sharing options...
Evangela Posted September 28, 2018 Share Posted September 28, 2018 (edited) If wanting the adjacent cell(s) coordinates.. Get the object's, XY, convert them to coordinates(posXY / 4096), then subtract/add where needed to get the adjacent cell coordinates. Additional sub/add to get the other cells, etc. You'd have to adjust the calculations for negative positions, or the coordinates will be one off. If wanting the adjacent cell(s) as objects, then nevermind. Edited September 28, 2018 by Rasikko Link to comment Share on other sites More sharing options...
Recommended Posts