Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local LUA_menu_MISC = gui.Reference("SETTINGS", "MISCELLANEOUS")
- local LUA_sun_slider_x = gui.Slider(LUA_menu_MISC, "LUA_sun_slider_x", "Sun Controll X", 0, -180, 180)
- local LUA_sun_slider_y = gui.Slider(LUA_menu_MISC, "LUA_sun_slider_y", "Sun Controll Y", 0, -180, 180)
- local LUA_sun_slider_z = gui.Slider(LUA_menu_MISC, "LUA_sun_slider_z", "Sun Controll Z", 0, -180, 180)
- local sun
- local controll_x
- local controll_y
- local controll_z
- function sun_stuff()
- sun = entities.FindByClass("CCascadeLight")[1]
- if sun ~= nil then
- controll_x = gui.GetValue("LUA_sun_slider_x")
- controll_y = gui.GetValue("LUA_sun_slider_y")
- controll_z = gui.GetValue("LUA_sun_slider_z")
- sun:SetPropVector({controll_x,controll_y,controll_z},"m_envLightShadowDirection")
- end
- end
- callbacks.Register("Draw", sun_stuff)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement