|
| 25 Nov 2012 12:58 PM |
| For the ignore list (which is a table), does it ignore the name, classname, or what in relations to the values of the table inserted into the arguments? |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 01:01 PM |
It ignores the actual objects, so Workspace:FindPartOnRayWithIgnoreList(Ray,{Workspace.Part1,Workspace.Part2,Workspace.Part3},false)
would ignore Part1, Part2, and Part3. |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 01:21 PM |
So, would this set IFoundIt as true?:
table = {workspace.donotwant1, workspace.donotwant2} IFoundIt = false NumOfTimes = 0
while IFoundIt = false do wait() NumOfTimes = NumOfTimes + 1 p = (FindPartOnRayWithIgnoreList(Ray,{workspace.PartInTheWay1},false))
if p.Name ~= "CoolName" then table[(NumOfTimes + 2)] = p
else IFoundIt = true end |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 01:24 PM |
| Well no, you're missing some ends, FindPartOnRayWithIgnoreList() is a method not a function, and Ray is undefined. |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 01:41 PM |
Assuming Ray already exists, I added the end I missed for the loop, and changed it to a method after realizing my derp.
while IFoundIt = false do wait() NumOfTimes = NumOfTimes + 1 p = (Ray:FindPartOnRayWithIgnoreList(Ray,{workspace.PartInTheWay1},false))
if p.Name ~= "CoolName" then
table[(NumOfTimes + 2)] = p
else
IFoundIt = true
end end |
|
|
| Report Abuse |
|
|
|
| 25 Nov 2012 01:56 PM |
| Almost, but its a method of Workspace, not Ray. Other than than, it should work. |
|
|
| Report Abuse |
|
|
| |
|