|
| 17 Aug 2015 11:50 AM |
Is there any way to find the terrain cells in a given area?
The Swimming event doesn't trigger while the Humanoid is in the PlatformStand state so I need another method to find out if the Character is in the water or not. |
|
|
| Report Abuse |
|
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 17 Aug 2015 11:56 AM |
http://wiki.roblox.com/index.php?title=FindPartsInRegion3
Try this. If not, try these
http://wiki.roblox.com/index.php?title=API:Class/Terrain/GetCell http://wiki.roblox.com/index.php?title=API:Class/Humanoid/Swimming |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Aug 2015 12:02 PM |
| Actually, I can't seem to figure out why water isn't detected by GetCell :l |
|
|
| Report Abuse |
|
|
lupine
|
  |
| Joined: 24 Jun 2008 |
| Total Posts: 3561 |
|
|
| 17 Aug 2015 12:05 PM |
I noticed as soon as I hit the 'Post' button - getting a water cell uses a different function. Use 'GetWaterCell(x,y,z)' instead
http://wiki.roblox.com/index.php?title=API:Class/Terrain/GetWaterCell |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Aug 2015 12:12 PM |
| Actually, this still doesn't work :< |
|
|
| Report Abuse |
|
|