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: Simple Raycast question

Previous Thread :: Next Thread 
litozinnamon is not online. litozinnamon
Joined: 21 Dec 2009
Total Posts: 891
29 Aug 2012 09:22 PM
Is there a way to include multiple objects in the ignore argument somehow? (Without grouping the parts together)
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Aug 2012 09:23 PM
What do you mean? What are you trying to do?
Report Abuse
litozinnamon is not online. litozinnamon
Joined: 21 Dec 2009
Total Posts: 891
29 Aug 2012 09:31 PM
Mainly with the findpartonray function

FindPartOnRay( ray, ignoreDescendentsInstance)

Can you put in more than one ignoreDescendentsInstances?
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Aug 2012 09:32 PM
Yeah I am pretty sure you can
Report Abuse
litozinnamon is not online. litozinnamon
Joined: 21 Dec 2009
Total Posts: 891
29 Aug 2012 09:37 PM
How would you do it though?
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Aug 2012 09:41 PM
Well since I am not very knowleged on RayCasting, I will just say what I would do. First, I would make a table of all the parts and bricks in the game and number them depending on their name (that may be hard lol). Then I would make IgnorePartsonRay thing ignore the numbers on the table which then will well make the ray ignore that part.
Report Abuse
litozinnamon is not online. litozinnamon
Joined: 21 Dec 2009
Total Posts: 891
29 Aug 2012 09:49 PM
IgnoreDescendentsInstance argument doesn't accept tables apparently
Report Abuse
Stripeyman879 is not online. Stripeyman879
Joined: 31 Jul 2008
Total Posts: 1726
29 Aug 2012 09:54 PM
Oh well thats what I didn't know.. lol
Report Abuse
Kevaknight is not online. Kevaknight
Joined: 08 Jun 2009
Total Posts: 2278
29 Aug 2012 09:55 PM
Have you tried:

FindPartOnRay( ray, ignoreDescendentsInstance) and FindPartOnRay( ray, ignoreDescendentsInstance)

and so on?
Report Abuse
TheLuaTester is not online. TheLuaTester
Joined: 24 May 2012
Total Posts: 168
29 Aug 2012 09:57 PM
Wait, so he would have to add a new FindPartOnRay(ray, ignoreDescendentsInstance) to define each descendent? :o

-Tester-
Report Abuse
Kevaknight is not online. Kevaknight
Joined: 08 Jun 2009
Total Posts: 2278
29 Aug 2012 09:58 PM
If he can't use a table, I believe that's the case.
Report Abuse
litozinnamon is not online. litozinnamon
Joined: 21 Dec 2009
Total Posts: 891
29 Aug 2012 10:01 PM
Then we would have a different ray created lol
Report Abuse
TheLuaTester is not online. TheLuaTester
Joined: 24 May 2012
Total Posts: 168
29 Aug 2012 10:02 PM
Well, if it works it works :D lol. Good luck lito

-Tester-
Report Abuse
TheLuaTester is not online. TheLuaTester
Joined: 24 May 2012
Total Posts: 168
29 Aug 2012 10:04 PM
Oh yea, well, don't mock me, but if you could somehow define the descendants in a different part of the script, that might work, but I have no idea how RayCasting works completely.

But something like

FindPartonRay(ray, Meow)

Meow = "1","a", "etc."

But I don't know v.v

-Tester-
Report Abuse
litozinnamon is not online. litozinnamon
Joined: 21 Dec 2009
Total Posts: 891
29 Aug 2012 10:08 PM
lol that results in an error
Report Abuse
litozinnamon is not online. litozinnamon
Joined: 21 Dec 2009
Total Posts: 891
29 Aug 2012 10:10 PM
wiki.roblox.com answered my own question lol

Answer:

FindPartOnRayWithIgnoreList () instead of FindPartOnRay()

___________________

FindPartOnRayWithIgnoreList( Ray, ignoreDescendentsTable )

___________________

Clever =D
Report Abuse
Kevaknight is not online. Kevaknight
Joined: 08 Jun 2009
Total Posts: 2278
29 Aug 2012 10:12 PM
Stuff = {"Descendant1","Descendant2","Descendant3"}

FindPartonRay(ray, Stuff)

Basically what Tester said.
Report Abuse
Kevaknight is not online. Kevaknight
Joined: 08 Jun 2009
Total Posts: 2278
29 Aug 2012 10:13 PM
Late post and I'm glad to know you figured it out. :)
Report Abuse
TheLuaTester is not online. TheLuaTester
Joined: 24 May 2012
Total Posts: 168
29 Aug 2012 10:20 PM
Aw, so I am not a genius... v.v

-Tester-
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