Stopping head movment
#1

I know it isn't exactly possible, please don't post saying 'u shud suggest dis m8', i'm not a nub.

Is there a way to make the player face the camera when I use SetPlayerCameraPos/LookAt?

Look:


Looks stupid.
Reply
#2

Tried setting the player to spectate mode, before setting the camera positions?
Reply
#3

Quote:
Originally Posted by Finn
Tried setting the player to spectate mode, before setting the camera positions?
How can he see himself if he is spectating..?
Reply
#4

Oh, you can't set the camera position while spectating? Didn't know that.

Or does the player disappear while specating? Didn't know that neither.

Sorry, was just my idea how I would have tried to solve your problem.
Reply
#5

You could replace your person with an skin-matching NPC. Off the top of my head I can't really recall a way to freeze head spin.
Reply
#6

This might sound stupid, but try TogglePlayerControllable?

Good luck.
Reply
#7

Quote:
Originally Posted by Wazza!
This might sound stupid, but try TogglePlayerControllable?

Good luck.
I assumed he had that already going when you're set to choose skin, wouldn't want to go walking off camera would you?
I just thought of a way
pawn Код:
SetPlayerFacingAngle(playerid,A);
SetCameraBehindPlayer(playerid);
SetCameraPosition(playerid,x,y,z);
SetCameraLookAt(playerid,x,y,z);
Fix that up and it oughta work for you.
By changing the facing angle, you control where 'SetCameraBehindPlayer' is going to look, and SetCameraLookAt doesn't effect the player's head movement, so the last angle the player had looked at was SetCameraBehindPlayer.
Reply
#8

I have tried everything you guys have suggested. I can't use an NPC for all my players...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)