Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lighttable = {
- "a",
- "b",
- "c",
- "d",
- "e",
- "f",
- "g",
- "h",
- "i",
- "j",
- "k",
- "l",
- "m",
- "n",
- "o",
- "p",
- "q",
- "r",
- "s",
- "t",
- "u",
- "v",
- "w",
- "x",
- "y",
- "z",
- }
- local LS_MAP = 0
- local lightnum = 1
- local function setLightStyle( lightChar )
- if SERVER then
- MsgN( "SERVER: "..lightChar )
- -- engine.LightStyle( LS_MAP, lightChar )
- for i=0,63 do
- engine.LightStyle( i, lightChar )
- end
- ents.FindByClass( "light_environment" )[1]:SetKeyValue( "FadeToPattern", lightChar )
- end
- if CLIENT then
- timer.Simple( 0.1, function()
- -- MsgN( "CLIENT: Redownloading all lightmaps..." )
- render.RedownloadAllLightmaps()
- end )
- end
- end
- --[[
- timer.Create( "LightTimer", 1, #lighttable, function()
- MsgN( "One iteration" )
- setLightStyle( lighttable[lightnum] )
- lightnum = lightnum + 1
- end )
- ]]
- --
- local char = "m"
- setLightStyle( char )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement