Manually disable/enable replication of a state property
Options
T_Schm
✭
in Photon Bolt
Hey folks,
I want to disable the replication of the position of an entity. Is this possible?
Basically what I am trying to do is that a server replicated unit should be parented to a predicted (server auth) entity. This will cause delay in the movement of that server unit, since the input of my local predicted entity causes a delay. (input -> movement on server -> replication)
For that period of time I want to disable the movement of the server unit and when this unit is not longer parented the replication should be enabled again.
Is there any way to do this? If not, any way to fake this behaviour (override the replication position)?
Best regards,
T_Schm
I want to disable the replication of the position of an entity. Is this possible?
Basically what I am trying to do is that a server replicated unit should be parented to a predicted (server auth) entity. This will cause delay in the movement of that server unit, since the input of my local predicted entity causes a delay. (input -> movement on server -> replication)
For that period of time I want to disable the movement of the server unit and when this unit is not longer parented the replication should be enabled again.
Is there any way to do this? If not, any way to fake this behaviour (override the replication position)?
Best regards,
T_Schm
0
Answers
-
Its very simple. Disable PhotonView of that GameObject will prevent [Replicate position].
You can resume [Replicate position] by Able PhotonView again.0