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

Module: Trace


Allows script to do a point trace with MASK_SHOT. Returns hit position, hit entity, hit surface normal.


trace = BulletTrace( magicBulletOrigin.origin, eyePos, true, undefined );

Required Args:

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