I’ve run into a bit of a snag with my current project.
I am creating prop_physics entities on the clientside and I then need to be able to hit these entities with traces.
Unfortunately, it seems this is not possible, or hopefully something has to be done to enable traces to hit them.
Here is what I am currently doing on the Client:
local Ent = ents.Create("prop_physics") Ent:SetModel("models/Items/AR2_Grenade.mdl") Ent:SetPos(Vector(0,0,0)) Ent:Spawn()
And then I will do a QuickTrace right through 0,0,0, also done on the Client (Which would normally hit that entity)
local Trace = util.QuickTrace(Vector(0,0,100),Vector(0,0,-200)) PrintTable(Trace)
The trace result shows that it hit nothing, however if I then create this entity on the serverside with the exact same code above, it hits it with a trace.
I have tried playing with :PhysicsInit(SOLID_VPHYSICS), :InitializeAsClientEntity(), and various other functions, but none of them have allowed me to trace it.
Is anyone aware of a way to get this to work?