Garry's Mod Wiki

Garry's Mod Wiki

  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].

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...