βοΈtrace
Functions:
ray
trace.ray(vec_start: vector, vec_end: vector, skip_entity: entity, mask: number):
trace
Name | Type | Description |
---|---|---|
vec_start |
| Vector to start tracing from |
vec_end |
| Vector to trace to |
skip_entity |
| Entity skipping options |
mask |
| Trace mask |
Returns a trace
struct containing all the information.
π struct trace
trace
Name | Type | Description |
---|---|---|
fraction |
| Percentage in the range [0.0, 1.0]. How far the trace went before hitting something. |
hit_entity |
| Entity that was hit by the trace |
hitgroup |
|
|
endpos |
| Final position |
Last updated