|
| 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 |
|
|
|
| 29 Aug 2012 09:23 PM |
| What do you mean? What are you trying to do? |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2012 09:31 PM |
Mainly with the findpartonray function
FindPartOnRay( ray, ignoreDescendentsInstance)
Can you put in more than one ignoreDescendentsInstances? |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2012 09:32 PM |
| Yeah I am pretty sure you can |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2012 09:37 PM |
| How would you do it though? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 29 Aug 2012 09:49 PM |
| IgnoreDescendentsInstance argument doesn't accept tables apparently |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2012 09:54 PM |
| Oh well thats what I didn't know.. lol |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2012 09:55 PM |
Have you tried:
FindPartOnRay( ray, ignoreDescendentsInstance) and FindPartOnRay( ray, ignoreDescendentsInstance)
and so on? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 29 Aug 2012 09:58 PM |
| If he can't use a table, I believe that's the case. |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2012 10:01 PM |
| Then we would have a different ray created lol |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2012 10:02 PM |
Well, if it works it works :D lol. Good luck lito
-Tester- |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 29 Aug 2012 10:08 PM |
| lol that results in an error |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 29 Aug 2012 10:12 PM |
Stuff = {"Descendant1","Descendant2","Descendant3"}
FindPartonRay(ray, Stuff)
Basically what Tester said. |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2012 10:13 PM |
| Late post and I'm glad to know you figured it out. :) |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2012 10:20 PM |
Aw, so I am not a genius... v.v
-Tester- |
|
|
| Report Abuse |
|
|