Move All Players to a Position?
Options
What i want to do is, when a player changes the level, i want to lerp each players position to the spawn position. How can i do this? i tried syncing a boolean that tells whether we should be lerping or not, but it just returns weird movement
0
Answers
-
So are you wanting the players to spawn at specific locations or smooth lerp to those locations?
If youre wanting to lerp players to positions at the start of the game, what you can do is simply run local code toMoveTowards
a specified point with aVector3.Lerp
orVector3.SmoothDamp
. This can be local as long as youre observing aTransformView
component in thePhotonView
or using your own customOhPhotonSerializeView
.
Let me know if you are having further issue with this.0