# TraceLineByChanel dont work when out of the view of the camera (Multiplayer/Projectile(GetWorldLocation))

**URL:** <https://forums.unrealengine.com/t/tracelinebychanel-dont-work-when-out-of-the-view-of-the-camera-multiplayer-projectile-getworldlocation/412649>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine, Multiplayer, projectile, question\
**Created:** [December 19, 2017, 1:03pm UTC](https://forums.unrealengine.com/t/tracelinebychanel-dont-work-when-out-of-the-view-of-the-camera-multiplayer-projectile-getworldlocation/412649 "2017-12-19T13:03:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sili\_Jz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sili\_Jz](https://forums.unrealengine.com/u/Sili_Jz)\
**Post date:** [December 19, 2017, 1:03pm UTC](https://forums.unrealengine.com/t/tracelinebychanel-dont-work-when-out-of-the-view-of-the-camera-multiplayer-projectile-getworldlocation/412649/1 "2017-12-19T13:03:22Z")

</div>

Hi guys, here is my problem :  
So, i make a project with multiplayer, and for now, i’ve got 2 player control on network and it’s working fine.  
When i shoot a gun, the players can see the projectile flying by, and all that good stuff, BUT

As soon as a Player 1 for exemple, look away and dont have Player 2 in this camera view, when Player 2 shoot ( it’s working fine for him), the Player 1 can see the projectile flying, but its stay at the last known pitch angle of Player 2. So Player 2 shoot above 2meter off the ground and moves it at 3meter for example, when player 1 is looking at P2, he can see the wiggle of the projectile going up and down, but as soon as P1 turn away from P2. Player 2 can shoot, but P1 cant see the wiggle up and down affecting the projectiles/bullets.

So, i hope i was clear, and do someone already had this problem ? And if someone know, how can i fix this ?

Oh and btw, i’m calling projectiles by replicated event(and SwitchHasAuthority etc) otherwise the other player cant see the projectiles.

And i’m new to UE4 so, dont yell at me to hard please \<3

Thanks in advance guys.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_80745b2b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_80745b2b](https://forums.unrealengine.com/u/anonymous_user_80745b2b)\
**Post date:** [December 20, 2017, 5:07am UTC](https://forums.unrealengine.com/t/tracelinebychanel-dont-work-when-out-of-the-view-of-the-camera-multiplayer-projectile-getworldlocation/412649/2 "2017-12-20T05:07:45Z")

</div>

Ok, i found the solution. Just in case it happens to someone, i found the anwser right there :

> **[Socket Location Incorrect When Server Isn't Looking](https://forums.unrealengine.com/questions/74420/socket-location-incorrect-when-server-isnt-looking.html)**
>
> Hello! I am using two socket locations on the tip of a sword and at the base, and then using some simple math to find three more positions in between them. When you are attacking, every .05 seconds the vectors update to new positions along the sword,...

So i set my meshes to “Always Tick pose and refresh bones” in the **Mesh Components Update Flag** , and it work.

The problem was, as you guessed it, when a player was out of view, the mesh and bones wasnt updated (so is the pitch orientation), and … yeah, was stuck and the previous orientation.
