also assign NetworkTransform.sendInterval when changing ped sync rate

This commit is contained in:
in0finite 2022-04-23 00:07:31 +02:00
parent ca44775812
commit cc30f5ba54
2 changed files with 4 additions and 1 deletions

View file

@ -527,7 +527,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
syncMode: 0
syncInterval: 0.1
syncInterval: 0.05
clientAuthority: 0
sendInterval: 0.05
syncPosition: 1

View file

@ -103,7 +103,10 @@ namespace SanAndreasUnity.Behaviours
// also change it for NetworkTransform, because it can be disabled
if (this.NetTransform != null)
{
this.NetTransform.syncInterval = newSyncInterval;
this.NetTransform.sendInterval = newSyncInterval; // one more property that we need to assign
}
}
void Update_Net()