Garry's Mod Wiki

CNavArea:ComputeGroundHeightChange

  number CNavArea:ComputeGroundHeightChange( CNavArea navArea )

Description

Returns the height difference on the Z axis of the two CNavAreas. This is calculated from the center most point on both CNavAreas.

Arguments

1 CNavArea navArea
The nav area to test against.

Returns

1 number
The ground height change.