Teleporting the player?

Options

Hello,

I am using Photon Fusion and my player is a NetworkCharacterControllerPrototype.

My game is set as a host+client.

When the player dies I change a NetworkedParameter which triggers a function with -

characterController.TeleportToPosition(newPosition);

But nothing happens. I know for sure the function is running.

Is there a different way I should use to move the character to a set position?

Answers

  • Klover
    Options

    I don't be using character controller because I like to code pretty much everything from scratch, so I would've just said transform.position = newPosition;


    Also make sure that you have the Photon Transform View component attached to your gameObject so that the position syncs for all clients. Not sure if it's different than PUN but that's how I would've done it.