generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Smoothe Terrain Scripting

Previous Thread :: Next Thread 
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
16 Jul 2015 09:32 PM
So I'm kinda confused on how to script with terrain

How would I go about removing a certain voxel?
like where to start?

Can someone give me some pointers, pseudo code, or some basic code :/
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
16 Jul 2015 09:34 PM
This page probably has some info you're looking for
http://wiki.roblox.com/index.php?title=Smooth_terrain#Scripting
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
16 Jul 2015 10:18 PM
yeah i skimmed through that and I didn't find a way to delete voxels :/
like if you were to "mine" them
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
16 Jul 2015 10:19 PM
There's a material type called "Air" that I saw when looking through the Material Enums, try setting it to that instead.
Report Abuse
Casadis is not online. Casadis
Joined: 05 Aug 2013
Total Posts: 115
16 Jul 2015 10:20 PM
I' guessing you could get the hit vector of your tool, then create a region3 there and then remove all voxels inside the region3. I've never done it before, but that's what I would look into.
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
16 Jul 2015 10:21 PM
oo so air is like nothing

gotcha
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
16 Jul 2015 10:22 PM
From what I've read you should be able to set cells empty in a certain region.
http://wiki.roblox.com/index.php?title=API:Class/Terrain/SetCells
Setting empty
http://wiki.roblox.com/index.php?title=API:Enum/CellMaterial

while true do the do
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
16 Jul 2015 10:25 PM
How would you get like a single voxel?
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
16 Jul 2015 10:31 PM
I guess you could convert a vector3 to a cell position.
http://wiki.roblox.com/index.php?title=API:Class/Terrain/WorldToCell

Also you can find a plethora of functions and cool stuffx here:
http://wiki.roblox.com/index.php?title=API:Class/Terrain

while true do the do
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image