Skip to content

EngineTrace

Fields

This class has no fields.


Functions

FindVar

Name Type Description
start Vector Start position
end Vector End position
skip C_BaseEntity* Entity, which will be skipped while tracing
mask int Mask

Return value

Name Type Description
trace CGameTrace Trace value
local localplayer = EntityList.GetLocalPlayer()
local trace = EngineTrace.TraceRay(Vector.new(1.0, 2.0, 3.0), Vector.new(4.0, 5.0, 6.0), localplayer, 0xFFFFFFFF)

LineGoesThroughSmoke

Name Type Description
start Vector Start position
end Vector End position
max_smoke_length float Not required

Return value

Name Type Description
value bool Will return true if the line goes through the smoke
local in_smoke = EngineTrace.LineGoesThroughSmoke(Vector.new(1.0, 2.0, 3.0), Vector.new(4.0, 5.0, 6.0), 116.0)