|
| 21 Jul 2012 08:56 AM |
The TouchEnded event doesn't fire in certain cases, like when a part is deleted or when a player respawns while touching another part.
This is currently preventing me from advancing in a certain project... |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2012 08:59 AM |
| In fact, this makes the TouchEnded event entirely useless... |
|
|
| Report Abuse |
|
|
| |
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 21 Jul 2012 09:13 AM |
That's when you use bounding boxes and a 'IsOver' function that uses math. Hurrah!
ROBLOX will fix it later. |
|
|
| Report Abuse |
|
|
Riderj
|
  |
| Joined: 15 Aug 2011 |
| Total Posts: 1534 |
|
| |
|
|
| 21 Jul 2012 09:16 AM |
I don't want to use math.
I just want an event that works. |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 21 Jul 2012 09:23 AM |
But the event doesn't work.
So I used math. |
|
|
| Report Abuse |
|
|
8SunTzu8
|
  |
| Joined: 30 Sep 2011 |
| Total Posts: 8199 |
|
|
| 21 Jul 2012 09:25 AM |
Hmm...
I just tried using the event yesterday, didn't work for what I needed it for. :/
I don't think it can really work if the other part was deleted, unless you knew the part was there beforehand. I don't even know how to use this event, but it makes sense.
"Improvise, Overcome, and Adapt." -Captain (RIP) |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2012 09:27 AM |
| Just add parts that touch to a table, then use FindPartsInRegion3 to see if they're still there. |
|
|
| Report Abuse |
|
|
8SunTzu8
|
  |
| Joined: 30 Sep 2011 |
| Total Posts: 8199 |
|
|
| 21 Jul 2012 09:28 AM |
^
I was talking to a friend who referred to regions...
I tried finding it on the wiki, but couldn't. Thanks, :p Anyway, I would have suggested it, but I don't know what it is or how it works, only what my friend is using it for.
"Improvise, Overcome, and Adapt." -Captain (RIP) |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2012 11:05 AM |
TouchEnded shouldn't be that hard. You should connect the event inside the .Touched event.
☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞ - Candymaniac, a highly reactive substance. |
|
|
| Report Abuse |
|
|
Garnished
|
  |
| Joined: 09 Apr 2012 |
| Total Posts: 12695 |
|
|
| 21 Jul 2012 11:25 AM |
That event doesn't work...
~Friends are like potato chips, you eat them they die.~ |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2012 11:30 AM |
Use a table, then for all your cases it wasn't found, make something for workspace.DescendantRemoving, make something for player.CharacterAdded (if the first one doesn't already fix this.)
8) |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2012 11:42 AM |
@xXxMoNkEyMaNxXx
Out of all the suggestions suggested in this thread, yours is the one I actually prefer.
Yet, what I still think would be best is if they just fixed the event to work correctly. |
|
|
| Report Abuse |
|
|
Quenty
|
  |
| Joined: 03 Sep 2009 |
| Total Posts: 9316 |
|
|
| 21 Jul 2012 11:56 AM |
It would be nice for them to fix it, but I'm still waiting on a fix from 6 months ago that I'm sure would be quite easy to fix.
Like, when a player dies, fix the camera type, and stuff....
Let's just put it this way: Just make your own solution if possible, and when ROBLOX fixes, you fix. |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2012 06:39 PM |
But I don't want to make my own solution, I want them to fix it!
I know I could easily find a solution, but I still want them to fix it. :( |
|
|
| Report Abuse |
|
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 21 Jul 2012 11:27 PM |
"but I'm still waiting on a fix from 6 months ago that I'm sure would be quite easy to fix. " I wouldn't be so sure about that, I can totally see how it could end up being a really hard problem to fix.
@OP: Yup, TouchEnded is useless, I found that much out while making DM17 and trying to use it to track when the character was standing or running along the ground. distance checks + raycasting are you best bet if you really need to be sure of contact with objects. |
|
|
| Report Abuse |
|
|
XX619
|
  |
| Joined: 22 Dec 2011 |
| Total Posts: 37 |
|
| |
|
RA2lover
|
  |
| Joined: 09 Nov 2008 |
| Total Posts: 1254 |
|
|
| 22 Jul 2012 03:24 PM |
| make them connect .Removed events on touch and disconnect them on TouchEnded |
|
|
| Report Abuse |
|
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 22 Jul 2012 07:11 PM |
"make them connect .Removed events on touch and disconnect them on TouchEnded"
That won't help. They are sometimes unmatched even when the hierarchy remains constant. |
|
|
| Report Abuse |
|
|