doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 29 Oct 2013 08:41 PM |
| I know I can control properties such as time, but can I control fog too? How would that work? |
|
|
| Report Abuse |
|
|
ForceSky
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 2379 |
|
|
| 29 Oct 2013 08:41 PM |
| Local lighting? Explain please... |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 29 Oct 2013 08:41 PM |
| local lighting is glitchy, but it would work the same way |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2013 08:43 PM |
You can control all the properties of lighting with 'Local Lighting' Hence, local _lighting_ |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2013 08:46 PM |
@18cwatford Wat? Local lighting is not defined by local variables, which are used with scopes (no, not gun scopes). It works (or at least, this is how the method I know works) because every client is setting the values of Lighting every single frame, meaning that the Lighting info sent by the server is being over-written by the client. However, using a "local" variable will not change any uses of lighting.
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2013 08:49 PM |
@Nelson Local Lighting is a glitchy way to have different lighting for each player, thanks to sever latenancy. Pm me if you want to know a little more about how it works cause I don't feel like explaining something on the forum. |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2013 08:50 PM |
@18cwatford I just explained it, actually... :3 Anywho, apologies. By the way you said it, you made it sound like you were saying that you could achieve local lighting by simply going "local var = game.Lighting" .-.
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 29 Oct 2013 09:56 PM |
| Last I checked, local lighting was accomplished by parenting a (or the, can't remember) Lighting object to the Player's camera, or something. |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2013 09:58 PM |
| One does not simply parent a server to another object. |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 29 Oct 2013 10:03 PM |
| I definitely accomplished it this way a long time ago. |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2013 10:59 PM |
| Wait, so how do you accomplish local lighting? |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 29 Oct 2013 11:06 PM |
| Something something camera something something...? |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2013 11:18 PM |
I am sorry that I cannot provide an example, as I am on my phone at the moment. However, I will make this VERY simple for you:
Make a LocalScript in StarterPack Make a while true do loop Change EVERY property of lighting to what you want it to be (you don't NEED to do every property, but it makes it simpler to explain). Example: game.Lighting.FogEnd = 100 Add a wait() (with no number between your brackets). If it seems stuttery, put the wait() right after the loop, and before you change any settings. Add your end
Apologies if I have any typos, my phone is annoying. |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2013 10:22 AM |
I'm on a computer now. I recommend that you use this script, as it will do the majority of the work for you: http://www.roblox.com/--item?id=103185990 Simply follow the instructions in the LocalScript, and you'll have local lighting in no time.
Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson |
|
|
| Report Abuse |
|
|