native

rg_trace_line

Syntax

native rg_trace_line(Float:vecStart[3], Float:vecEnd[3], const ignoreMonsters, const ignoreEntity, const ptr, const traceFlags = 0);

Description

Fires a trace line between two origins, retrieving the end point and entity hit.

Parameters

vecStart Start position
vecEnd End position
ignoreMonsters Entity ignore type
ignoreEntity Entity index that trace will ignore, NULLENT if trace should not ignore any entities
ptr Traceresult pointer, use Fakemeta's create_tr2 to instantiate one
traceFlags Additional trace flags, see FTRACE_* constants on cssdk_const.inc

Return

This function has no return value.