UE2 - UT2kX mover and replication

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Iwush

New Member
Feb 21, 2008
32
0
0
Hi,
I would like to ask about how to replicate movement of mover to client.

I used this code, on server it works , but on client is mover rotating like 1000 times faster. Does anybody know where could be problem?

class myClass extends Mover;

replication
{
reliable if ( Role<ROLE_Authority )
DoRotateTime;
}



simulated function DoRotateTime(int time, int vel,int direction){
local rotator r;
Enable('Timer');
setTimer(time, false);
//set yaw +- to change direction
r.yaw = vel*direction*DegreesUuRatio;
r.pitch = 0;
r.roll = 0;
RotationRate = r;
setPhysics(PHYS_Rotating);
}