IntenseSF
|
  |
| Joined: 29 Nov 2012 |
| Total Posts: 15 |
|
|
| 31 Dec 2013 06:04 PM |
| you know when you touch the mats and it only deals on damage only on the mats.. I need help with that.. working on a game that needs this really bad for this game to work properly |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
IntenseSF
|
  |
| Joined: 29 Nov 2012 |
| Total Posts: 15 |
|
| |
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 31 Dec 2013 06:09 PM |
| The reason why cnt is being quiet on this is because lots of people ask this question. Try searching for past threads with the same question, or if that doesn't help, make an attempt using the wiki, and post any lines of code you're having problems with. |
|
|
| Report Abuse |
|
|
IntenseSF
|
  |
| Joined: 29 Nov 2012 |
| Total Posts: 15 |
|
|
| 31 Dec 2013 06:09 PM |
| That is explains a lot haha.. ;) thanks |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 31 Dec 2013 06:10 PM |
Plus, it's the wrong forum since we don't give scripts here, only fix.
Anyway, you want to compare the position coordinates of the character's torso (or head or whatever you want) relative to the position of the "floor" and its size |
|
|
| Report Abuse |
|
|
IntenseSF
|
  |
| Joined: 29 Nov 2012 |
| Total Posts: 15 |
|
| |
|
IntenseSF
|
  |
| Joined: 29 Nov 2012 |
| Total Posts: 15 |
|
|
| 31 Dec 2013 06:16 PM |
| one guy told me about Boolean value on everything.. would that work? |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 31 Dec 2013 06:17 PM |
I have no idea what that means.
|
|
|
| Report Abuse |
|
|
IntenseSF
|
  |
| Joined: 29 Nov 2012 |
| Total Posts: 15 |
|
| |
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 31 Dec 2013 06:21 PM |
| If you mean something like StillTouching, then theoretically, yes. You could. I've never attempted this, so I can't be certain. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 31 Dec 2013 06:21 PM |
No, booleanvalues would be stupid. Here's a hint.
local maxRight = base.Position + (base.Size.X / 2) if torso.Position <= maxRight then print("They are somewhere left of the mostRight point of the base") |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
| |
|
IntenseSF
|
  |
| Joined: 29 Nov 2012 |
| Total Posts: 15 |
|
| |
|