mityguy
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 5483 |
|
|
| 27 May 2013 08:42 PM |
| If a ray is cast, and it hits and object you can tell from the object casting. But can the object hit know when its hit? |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 27 May 2013 08:56 PM |
| The object can't tell when its hit, but the ray can tell what the first object it is. |
|
|
| Report Abuse |
|
|
mityguy
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 5483 |
|
|
| 27 May 2013 08:57 PM |
| I'm aware of that, I need to find a way for the object hit to detect when its hit. |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 27 May 2013 08:58 PM |
| Well then you need to tell the object that your ray detected it. You could use a bindable function/event. |
|
|
| Report Abuse |
|
|
mityguy
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 5483 |
|
|
| 27 May 2013 08:59 PM |
| Wait wait, that might work can you help me out, where do I start |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 27 May 2013 09:01 PM |
http://wiki.roblox.com/index.php/Bindable_event http://wiki.roblox.com/index.php/BindableFunction http://wiki.roblox.com/index.php/Callback_%28Tutorial%29 |
|
|
| Report Abuse |
|
|
mityguy
|
  |
| Joined: 07 Jun 2008 |
| Total Posts: 5483 |
|
| |
|