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);
}
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);
}