Revision Difference
CNavArea:GetLightIntensity#568262
<function name="GetLightIntensity" parent="CNavArea" type="classfunc">⤶
<description>Returns the stored light intensity of this nav area.</description>⤶
<realm>Server</realm>⤶
<added>2026.07.02</added>⤶
<args>⤶
<arg name="position" type="Vector" default="nil">If given, a world position to calculate light intensity at. (elevation ignored)⤶
⤶
Internally light intensity is stored for each corner, so the final value would be interpolated from these 4 values based on which one is closest.⤶
⤶
If omitted, the return value will be simply an average of the 4 values.⤶
</arg>⤶
</args>⤶
<rets>⤶
<ret name="" type="number">The light intensity in range of [0,1].</ret>⤶
</rets>⤶
</function>⤶
⤶
Garry's Mod
Rust
Steamworks
Wiki Help