|
| 14 Dec 2011 08:19 PM |
game.Workspace.Terrian:WorldToCellPreferSolid(Vector3.new(1,4,5))
> (NOTHING!)
Does it even work??? I don't get how to use it! |
|
|
| Report Abuse |
|
|
| |
|
blockoo
|
  |
| Joined: 08 Nov 2007 |
| Total Posts: 17202 |
|
|
| 14 Dec 2011 09:09 PM |
^ If you're confused on it, it returns a terrain cell that falls on the given position. If it's on the boundary of a solid cell and an empty cell, then it will by default return the solid cell. |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2011 03:15 PM |
| So your saying you can check if a Terrain block is at that position and if it is then return where that block is? |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2011 06:31 PM |
If you select world coord so that you know it will hit border and you know one is solid and one empty then yes.
The function itself does not tell where solid are. It just return closest cell coordinate. Only in border situation it prefers solid.
|
|
|
| Report Abuse |
|
|