native traceresult(type, any:...);
| type | Result to retrieve |
| ... | Depending on the result type a different number of
additional parameters should be provided:
int - Returns the result integer value directly, no
additional parameters required
float - Stores the result float value into the
variable provided as the second parameter
vector - Copies the result vector to the Float:array[3]
provided in the second parameter |
Retrieves a result from the global engine module trace handle.
For a list of trace results available see the TR_* constants in engine_const.inc.
Usage examples: value = traceresult(TR_AllSolid); traceresult(TR_Fraction, floatvalue); traceresult(TR_EndPos, vector);
Changes depending on the result type: int - Returns the result integer value float - Returns 1 vector - Returns 1
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.