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 » Scripting Helpers
Home Search
 

Re: :WorldToCellPreferSolid????

Previous Thread :: Next Thread 
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
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
RistoReipas is not online. RistoReipas
Joined: 07 May 2009
Total Posts: 93
14 Dec 2011 08:47 PM
no print()?
Report Abuse
blockoo is not online. 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
Vitouliss14 is not online. Vitouliss14
Joined: 18 Mar 2009
Total Posts: 7918
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
RistoReipas is not online. RistoReipas
Joined: 07 May 2009
Total Posts: 93
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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