Skip to content

Perspective

In Marmot, you can choose to lock a player’s perspective or force set it.

This method is subject to change in the future.

If you want to lock their current perspective, you can do:

player.lockPerspective(true)

If you want to unlock their perspective, you can do:

player.lockPerspective(false)

If you want to force their perspective, you can do:

player.setPerspective(ClientPerspective.FIRST_PERSON)
player.setPerspective(ClientPerspective.THIRD_PERSON_BACK)
player.setPerspective(ClientPerspective.THIRD_PERSON_FRONT)

You can chain events to set their perspective and then lock it, as shown:

player.setPerspective(ClientPerspective.THIRD_PERSON_BACK)
player.lockPerspective(true)