Skip to main content

Client

lib.raycast.cam

Starts a shapetest originating from the camera, extending to ~10m.

function lib.raycast.cam(flags, p8) end

Return:

  • hit: boolean
  • entityHit: number
  • endCoords: vector3
  • surfaceNormal: vector3
  • materialHash: number