line trace doing things it shouldn't

Hi, how to I fix the Trace doing strange things, i have this problem with this one and the one from the camera actor to the player, it will trace from spot that the camera isn’t there

The trace is doing what the script is telling it to, if you need help with the script, you know what to do - show the script.


hears a simple one, the camera is not over there, so why is the trace showing that and having a trace from an unknown location,

as the end of the trace I am setting some custom primitive data, so I can hide the mesh blocking a player, but my problem is with the trace, I have the collusion test set to off on the spring arm is there some setting i am missing

The green trace comes from another trace not shown above?

yes, but why trace from the camera to the player showing different locations, it not the first time I have come across this
I end up deleting most of that because I was having problems with the array and the trace, it would not remove the last item in the array because the branch would change state before I could clear the last part the array making the last mesh hidden, I hit in the trace always hidden. I was going to rethink what I was doing and try something different.

dose any one know why the line trace is tracing from locations that don’t exist? I have a crated very simple line trace from the camera to the player to show the effect I was having to take out any other reason, but as the picture above shows it doesn’t always work, is there some setting that I have to use I have collusion as unticked on the spring arm and there is no change in the camera location

Ok. I figured out the problem, So I have the camera that is set to one location sometimes it goes to another location, why i don’t really know, but i moved the code to a BP actor component and set the Tick interval to a lower amount with which takes out the trace going to a different location,

One thing you need to know in case you do server traces is that the servers camera component doesn’t move. It stays at the default spawn orientation and position.

To get accurate traces off the server you need to use base aim rotation and camera manager camera location.