Modules
Raycast
Client

Client

lib.raycast.cam

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

lib.raycast.cam(flags, ignore, distance)

Return:

  • hit: boolean
    • Whether or not an entity was hit
  • entityHit: number
    • Entity handle of hit entity
  • endCoords: vector3
    • Closest coords to where the raycast hit
  • surfaceNormal: vector3
    • Normal to the surface that was hit
  • materialHash: number