attached actor's location and rotation not correct when out of culling distance
scene: have a large map, greater than net culling distace. Character pickup a fire extinguisher (hide and add to inventory), move to fire location(> net culling distance), equip the fire extinguisher(show and attach to hand), and operate fire extinguisher ( draw debug line to show the direction and length).
Problem 1: using listen server. Server side don't move, Client side move character to pickup fire extinguisher and move to fire location, equip then start operate(Client side DebugLine is correct, server side Debugline is wrong). cannot make the fire off, since the fire off logic is on server only. Then Server side character move to fire location too, then operate on client side, as the picture show, server side DebugLine is correct!!!
Problem 2: using dedicated server, have two clients, client1 don't move, client2 pickup fire extinguisher( hide and add to inventory), move to fire location, equip(show and attach to hand), then operate. move client1 to fire location, close enough to see client2's character, sometimes fire extinguisher on client2 character's hand still hidden.(the attachment seems correct, since i can make the fire off).
Problem 1 fix: seems when client1 character far away and not visible, engine will not render, and the skeletal mesh has property MeshComponentUpdateFlag default set to AlwaysTickPose, it will not update bones transform when not rendered. change MeshComponentUpdateFlag to AlwaysTickPoseAndRefreshBones, fix the problem.
so this is the designed behavior?? seems not make sense on listen server (dedicated server not have the issue).
answered Apr 20 '18 at 05:41 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here