SightTracePassed( <start>, <end>, <hit characters>, <ignore entity> )

Module: Trace


Allows script to do a point trace with MASK_OPAQUE_AI. Returns true if trace complete, else returns false.


success = SightTracePassed( magicBulletOrigin.origin, eyePos, true, undefined );

Required Args:

  • 1 : <start> The sight start point
  • 2 : <end> The sight end point
  • 3 : <hit characters> When set to true, this will trace for character hits
  • 4 : <ignore entity> An entity to ignore