hunte922
|
  |
| Joined: 28 May 2008 |
| Total Posts: 6969 |
|
|
| 20 Aug 2012 09:22 AM |
| Can't find one, hoping someone can link me to a script that does this. |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2012 09:28 AM |
I've never seen such a model. But while you're waiting, help me with my script? |
|
|
| Report Abuse |
|
|
hunte922
|
  |
| Joined: 28 May 2008 |
| Total Posts: 6969 |
|
| |
|
|
| 20 Aug 2012 09:45 AM |
| Its on this forums, nobody understands Explosion.Hit and I thought you might |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2012 09:46 AM |
Well, to get the perimeter of the bounding box of it is quite simple.
But to get the exact perimeter...gotta get creative with the scripting. I'm sure there's a way to do it, but I wouldn't be able to. Probably a few people who could do it though. |
|
|
| Report Abuse |
|
|
| |
|
hunte922
|
  |
| Joined: 28 May 2008 |
| Total Posts: 6969 |
|
|
| 20 Aug 2012 09:48 AM |
| MrChickens, you're no help. Please leave this thread. |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2012 09:48 AM |
^^^ Words of Wisdom ^^^
† KMXD 2.0 † |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2012 09:48 AM |
For instance, getting the bounding box perimeter around the horizontal line would look like:
local model = MODEL_PATH_HERE local size = model:GetModelSize()
local horizPerimeter = (size.x*2) + (size.z*2) |
|
|
| Report Abuse |
|
|
hunte922
|
  |
| Joined: 28 May 2008 |
| Total Posts: 6969 |
|
|
| 20 Aug 2012 09:49 AM |
| Wait, :GetModelSize() is a stock function? It's not on the wiki, but if it works, that's exactly what I need. |
|
|
| Report Abuse |
|
|
|
| 20 Aug 2012 09:50 AM |
Aye, look in the Object Browser :)
There's also GetModelCFrame() |
|
|
| Report Abuse |
|
|
hunte922
|
  |
| Joined: 28 May 2008 |
| Total Posts: 6969 |
|
|
| 20 Aug 2012 09:51 AM |
| OK, GetModelSize() solves this problem. Thanks for the quick help. |
|
|
| Report Abuse |
|
|