AMX Mod X API Documentation

Signature
native trace_normal(iIgnoreEnt, const Float:fStart[3], const Float:fEnd[3], Float:vReturn[3]);
Description

Fires a trace line between two origins, retrieving the trace normal.

Notes
  • This native writes to the global engine module trace handle. Additional

    trace results can be retrieved using traceresult().

Parameters
  • iIgnoreEnt Entity index that trace will ignore, -1 if trace should

    not ignore any entities

  • fStart Trace starting point
  • fEnd Trace target point
  • vReturn Vector to copy trace normal to
Returns

1 if a normal is available (trace hit something), 0

otherwise

Назад
Верх