lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 06 Jul 2015 10:11 PM |
| How would you guys think I'd go about making a script that detects bricks that are walls? In context, I'm trying to make a wall running system. Think Mirror's edge or Warframe. I don't want scripts, I want a nudge in the right direction. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2015 10:12 PM |
umm.. not sure what you mean
if part.ClassName=="Part" and part.Name=="aDAMwall" then -- code end |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 06 Jul 2015 10:13 PM |
if part:IsA("Part") *
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 06 Jul 2015 10:19 PM |
| alright. So I'm trying to figure out how I would be able to distinguish floors from walls, and when you're touching a certain surface of a given base part. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2015 10:21 PM |
Just name the walls different from something else or just insert an xvalue into the part that lets the client know it's a climbable wall.
For the latter, google pls http://www.roblox.com/Forum/ShowPost.aspx?PostID=96431229
|
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 06 Jul 2015 10:25 PM |
| that takes too much work, and I would like to do this automatically via script. I'd like to find out how to tell if a vertical surface that is more than x studs tall. |
|
|
| Report Abuse |
|
|
| |
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 06 Jul 2015 10:26 PM |
| I've been doing that but I dont like it that's why I came here. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2015 10:27 PM |
| Well, how else would you do it? |
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 06 Jul 2015 10:27 PM |
| right. by the way that's the Y value. Thanks anyhow. also that thread you linked me to is an insane amount of time saved! |
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 06 Jul 2015 10:27 PM |
| haha that's what I'm asking y'all |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2015 10:28 PM |
| i sincerely hope you know that the X part was a mistake or i'm going to look like the worlds dumbest human |
|
|
| Report Abuse |
|
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
| |
|
lolb3
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 2268 |
|
|
| 06 Jul 2015 10:34 PM |
| OH! So I will check the rotation of the brick first to figure out which value (X,Y or Z) is the vertical axis on the parts local axis. Then i'll just figure out how tall that surface is and then mark it. Thanks for your help and that nifty surface touched function! |
|
|
| Report Abuse |
|
|