Weaopon line tracing.

In several places ive seen whej trying to set up line tracing for gun that all of those versions are lower than 5.2 and they all have a particular spot to start for line tracing. However in 5.2 there seems to be no immediate way to start as in the first person blue print or the rifle blue print there isnt a direct use fucntion to start at. Does anyone know where to start for line tracing in 5.2? Thanks.

all of those versions are lower than 5.2 and they all have a particular spot to start for line tracing.

Nah, no they don’t. Line trace takes a pair of vectors and it’s up to you to provide them; there is no standard way of doing it.

  • if I had a gun with 3 barrels, I may want to trace from each barrel
  • if shoot laser out of my eyes, I’ll eyeball it, so to speak
  • when performing an orbital strike, you’d trace from top ==> down or towards a mouse click location

a particular spot to start for line tracing

What kind of spot are we talking about then? Perhaps you’re looking for sockets! Quite often folks add sockets to meshes to indicate a specific spot on the mesh, like an attachment point for a scope or… the muzzle where tracing can start if we want to be super accurate.