Page 1 of 1
Raytracing triggers
Posted: Wed Nov 24, 2021 10:37 am
by velocity
Is it possible with the current implementation of gametrace for the ray to hit map triggers, e.g trigger_multiple?
Trace that hit triggers
Posted: Wed Nov 24, 2021 1:59 pm
by Articha
He is hitting triggers. At least in my code. May be deal in mins/maxs ?
Syntax: Select all
ray = Ray(player.eye_location, target_vector, player.mins, player.maxs)
engine_trace.trace_ray(ray, ContentMasks.ALL, TraceFilterSimple((player,)), trace)
With this code I tried to teleport, but something invisible (de_dust2, CT spawn -> Ramp-Long) blocks trace. It was trigger
Re: Raytracing triggers
Posted: Wed Nov 24, 2021 6:42 pm
by velocity
I have already tested before and it did not hit triggers.