Back to _G (Global)

CheckShadowZoneObscured

S

Part of _G (Global) namespace

function CheckShadowZoneObscured(StartDepth, EndDepth, Elevation)
View on GitHub|lua/entities/ace_sonar/init.lua:821-873
👁️ 0 viewsUpdated 4 months ago

Description

Checks if noise can reach the given area. Likely will be reworked.

Parameters

NameTypeDescription
StartDepthany
EndDepthany
Elevationany

Returns

No return values documented.

Examples

No examples available.

Used In(2 locations)

📄lua/entities/ace_sonar/init.lua
2 usages
L533if CheckShadowZoneObscured(SonarDepth, TarDepth, AngPitch) then continue end
L661if CheckShadowZoneObscured(TarDepth, SonarDepth, -AngPitch) then continue end