|
| 26 Oct 2012 04:46 PM |
| I have no idea how to even begin going about this. Any assistance please? |
|
|
| Report Abuse |
|
|
|
| 26 Oct 2012 04:49 PM |
| I should probably clarify, I only want to clear Water from it. I do not want to clear all of the terrain. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 26 Oct 2012 04:51 PM |
| game.Workspace.Terrain:Clear() |
|
|
| Report Abuse |
|
|
|
| 26 Oct 2012 04:52 PM |
| Thanks for reading my second post, Fedorakid. |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
| |
|
TNTxERIC
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2689 |
|
|
| 26 Oct 2012 04:53 PM |
http://wiki.roblox.com/index.php/RBX.lua.Terrain_%28Object%29
I see GetWaterCell, clear, and destroy; play with that. |
|
|
| Report Abuse |
|
|
TNTxERIC
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2689 |
|
|
| 26 Oct 2012 04:55 PM |
I'm guessing it would be something like this:
water = game.Workspace.Terrain:GetWaterCell
water:Destroy()
or
water = game.Workspace.Terrain:GetWaterCell
water:Destroy()
|
|
|
| Report Abuse |
|
|
TNTxERIC
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2689 |
|
|
| 26 Oct 2012 04:57 PM |
Sorry I mean:
or
water = game.Workspace.Terrain:GetWaterCell
water:Clear() |
|
|
| Report Abuse |
|
|
|
| 26 Oct 2012 04:59 PM |
| Neither works, and Output doesn't provide any errors at all. |
|
|
| Report Abuse |
|
|
TNTxERIC
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2689 |
|
|
| 26 Oct 2012 04:59 PM |
Sorry you need parentheses for GetWaterCell
water = game.Workspace.Terrain:GetWaterCell()
water:Destroy() |
|
|
| Report Abuse |
|
|
|
| 26 Oct 2012 05:01 PM |
GetWaterCell(int x, int y, int z)
(object browser)
Requires the coordinates... using it without arguments doesn't work |
|
|
| Report Abuse |
|
|
Xnite515
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 22763 |
|
| |
|
|
| 26 Oct 2012 05:15 PM |
We may have encountered another new issue. Doesn't look like :GetWaterCell is gonna work:
Tuple GetWaterCell(int x, int y, int z) Member of Terrain Preliminary: This item is under development and is likely to change. Use only for experimental work.
Roblox Preliminary: This item is under development and is currently restricted for use by Roblox Admins only.
Deprecated: This item is deprecated. Do not use it for new work.
Summary: Returns hasAnyWater, WaterForce, WaterDirection
Got an ugly Roblox Preliminary on it. |
|
|
| Report Abuse |
|
|
TNTxERIC
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2689 |
|
|
| 26 Oct 2012 05:19 PM |
Well the only thing you can do is wait then. It's still under development. I can't think of any other way.
-http://www.roblox.com/TNTxERIC-item?id=88273188- |
|
|
| Report Abuse |
|
|
gijsbel11
|
  |
| Joined: 07 Feb 2009 |
| Total Posts: 4223 |
|
|
| 26 Oct 2012 05:31 PM |
maybe by going trough all the cells and use
http://wiki.roblox.com/index.php/GetCell_(Method)
to check if it's water, if it's water then you can use :
http://wiki.roblox.com/index.php/SetCell_(Method) http://wiki.roblox.com/index.php/SetCells_(Method)
to set it to 'air'
If you need to know how big the terrain is for the for loops that go trough the terrain cells just use the .size property.
|
|
|
| Report Abuse |
|
|