I guess I can get away with just using the red lines but that in and of itself is not ideal. I kind of just want an easily replicated graphic effect that I can modify in simple ways for things like predicting where a grenade will go when you throw it or a rail gun beam effect. Or being able to display where players are looking when you are in spectator mode like in CS:GO.
Can anyone point me to how I can learn more about doing something like this?
There is the particle trail that I would say is a better idea potentially. You just attach it to a moving object such as an invisible sphere that you animate along your trace.
I merely need a visual effect for weapons like rail guns and lightning guns. I was tempted to just figure out a way to draw debug line traces as that is something that does exactly what I need but Its kind of a tough call. I don’t know if its worth drawing more traces to do a visual effect like that.
Also a particle is a bit more flexible for stuff too.
so now I am running into a problem where the particle effect only replicates if the trace does not hit anything. But that is only true for multicast.
If I tell the trace to draw on the owning client then it works in both cases but nobody else can see the effect.