Garry's Mod Wiki

Revision Difference

engine.LightStyle#515645

<function name="LightStyle" parent="engine" type="libraryfunc">⤶ <description>⤶ This is a direct binding to the function “engine-&amp;gt;LightStyle”. This function allows you to change the default light style of the map - so you can make lighting lighter or darker. You’ll need to call <page>render.RedownloadAllLightmaps</page> clientside to refresh the lightmaps to this new color.⤶ ⤶ <bug issue="3626">Calling this function with arguments 0 and "a" will cause dynamic lights such as those produced by the Light tool to stop working.</bug>⤶ </description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="lightstyle" type="number">The lightstyle to edit. 0 to 63. If you want to edit map lighting, you want to set this to 0.</arg>⤶ <arg name="pattern" type="string">The pattern to change the lightstyle to. &quot;a&quot; is the darkest, &quot;z&quot; is the brightest. You can use stuff like &quot;abcxyz&quot; to make flashing patterns. The normal brightness for a map is &quot;m&quot;. Values over &quot;z&quot; are allowed, &quot;~&quot; for instance.</arg>⤶ </args>⤶ </function>⤶ ⤶