How would I set camera to be up close to the player's face?
#1

Hello,

as said in the title, how would I be able to set the camera so it is close to the players face while in EditAttachedObject mode? thanks.
Reply
#2

First use GetPlayerPos and increase the received z coord with 1.8. Use this in SetPlayerCameraLookAt. Then use GetXYInFrontOfPlayer (search for that function). Use the newly retrieved x and y, together with the existing z in SetPlayerCameraPos.
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
First use GetPlayerPos and increase the received z coord with 1.8. Use this in SetPlayerCameraLookAt. Then use GetXYInFrontOfPlayer (search for that function). Use the newly retrieved x and y, together with the existing z in SetPlayerCameraPos.
Thanks a lot, was a bit confused about the functions. I'll get right on this!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)