SetPlayerCameraPos Question - 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: SetPlayerCameraPos Question (
/showthread.php?tid=429327)
SetPlayerCameraPos Question -
saamp - 09.04.2013
Hello guys. I use SetPlayerCameraPos to set my player's camera position and SetPlayerCameraLookAt to set my player's camera looking at a point; now, while I use this two function I want to move the camera by mouse, not to be fixed. Is that possible in a way? Something like InterpolateCameraPos...
Thanks!
Re: SetPlayerCameraPos Question -
iggy1 - 09.04.2013
When you downloaded the server you got a file called "flymode.pwn" in the filterscripts folder. You can take a look how it's done there.
I can't remember how it works, not sure if it's controlled by the mouse or not.
Re: SetPlayerCameraPos Question -
saamp - 10.04.2013
Thanks, I checked that. But when I use the flymode, my character is gone in TogglePlayerSpectating, and I don't want that. All I want is to see my player and from a fixed point to can to move the camera from my mouse.
Re: SetPlayerCameraPos Question -
Basssiiie - 10.04.2013
If you want a free camera that can look around, use AttachCameraToObject and attach it to an object.