How would I set camera to be up close to the player's face? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How would I set camera to be up close to the player's face? (
/showthread.php?tid=361587)
How would I set camera to be up close to the player's face? -
Xenoyia - 21.07.2012
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.
Re: How would I set camera to be up close to the player's face? -
Vince - 21.07.2012
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.
Re: How would I set camera to be up close to the player's face? -
Xenoyia - 21.07.2012
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!