|
| 29 May 2013 07:14 PM |
To make things easy to understand: A brick that shoots a "laser" at individual bricks (one at a time) until the whole map is loaded for a "holo" training facility.
For example, I want to load a map with a bridge. The bridge is made up of multiple parts. When someone says "load bridge", I want the brick above the (now invisible/transparent) bridge to create a "laser thin" brick that touches (at the ends) both the brick above the bridge and the first brick of the bridge. Then, after 0.01 seconds, the brick above the bridge creates another "laser thin" that touches (at the ends) both the brick above the bridge and the next brick that is part of the bridge.
Er...If you need me to explain it more, feel free to ask.
I know I have to put the different maps in Lighting, set Workspace as the parent, and have it transparent. I can do that easily, but I can't do what I said above. I don't want you to write a script, but I want someone to explain what I need to know (what parts of lua [e.g; tables, functions, etc.]) to make what I want to happen, well, happen. |
|
|
| Report Abuse |
|
|
|
| 29 May 2013 07:15 PM |
| Raycasting would be your bestfriend for this. |
|
|
| Report Abuse |
|
|
|
| 29 May 2013 07:16 PM |
| Oh. Wow, why didn't I think of that. Thanks. |
|
|
| Report Abuse |
|
|
|
| 29 May 2013 07:20 PM |
So according to http://roblox.wikia.com/wiki/Raycasting, a ray requires:
Ray.new(origin, direction)
So for the origin, I could put the position of the "brick above the bridge", as said in the example above.
However, for the direction, what would I do to make it quickly change directions towards the individual parts of a group?
|
|
|
| Report Abuse |
|
|
|
| 29 May 2013 07:24 PM |
You would make a boatload of rays...
~problem solved~ |
|
|
| Report Abuse |
|
|
|
| 29 May 2013 07:25 PM |
I meant I want 1 ray at a time.
1 ray shoots to one brick of a model, and that brick becomes non-transparent. All of that happens in 0.01 seconds (or whatever amount of time), and the ray disappears after that amount of time. Then it reappears again to shoot at the next brick in a model, repeating the process until every brick of the model is now non-transparent. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 29 May 2013 07:55 PM |
http://wiki.roblox.com/index.php/How_to_Make_a_Raycasting_Lasergun
Use this as a guide. Instead of doing damage make it make the part visible, instead of coming from the gun to where you click, make it go from the start to end point.
http://www.roblox.com/My/Groups.aspx?gid=66545 |
|
|
| Report Abuse |
|
|