Garry's Mod Wiki

CNavArea:GetLightIntensity

  number CNavArea:GetLightIntensity( Vector position = nil )

Recently Added

This was recently added in version (2026.07.02). It might only be available on the Dev Branch right now.

Description

Returns the stored light intensity of this nav area.

Arguments

1 Vector position = 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.

Returns

1 number
The light intensity in range of [0,1].