Jump to content

Spectator Mode


Bonsai

Recommended Posts

Hey Peeps,

I finally wanna solve my spectator mode problem.

When the localPlayer dies, I use setCameraMatrix(getCameraMatrix()) to make the camera stop following

and prevent this shaking thing.

But after about 3 seconds it still starts to shake..

Also, sometimes the camera flies back to the last position of the dead player and you can still see the body lying there.

Its not that bad to see the dead body since they can be moved away, but I don't understand why the camera seems to auto focus the player, even though I cleared the camera target before.

I tried using spawnPlayer on death to prevent any camera manipulation caused by death, but its basically the same thing, camera focuses the player. Only difference is the Player isn't dead.

I really need someone who knows about this..

It became really annoying, and checking how its done in race resource wasn't helpful at all.

Bonsai

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...