donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
|
| 23 Aug 2011 10:04 PM |
part and endPoint will be local variables.
~~{I'm a dangerous sociopath with a long history of violence}~~ ~{I don't understand how you keep forgetting that}~ |
|
|
| Report Abuse |
|
|
donut222
|
  |
| Joined: 09 Jun 2009 |
| Total Posts: 1837 |
|
| |
|
|
| 23 Aug 2011 10:10 PM |
part is the part the ray hit or nil if it didn't hit anything. endPoint is the Vector3 position where the ray ended.
~~{I'm a dangerous sociopath with a long history of violence}~~ ~{I don't understand how you keep forgetting that}~ |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2011 10:43 PM |
| FindPartOnRay returns two things. Part captures the first thing returned, endPoint captures the second. |
|
|
| Report Abuse |
|
|
tdog158
|
  |
| Joined: 08 Jul 2008 |
| Total Posts: 5413 |
|
|
| 23 Aug 2011 10:47 PM |
| Basically :FindPartOnRay() returns two values, but it doesn't use a table. It's like saying local one, two = 1, 2 |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2011 11:21 PM |
| ah i see, that makes much more sense |
|
|
| Report Abuse |
|
|