SetPlayerCameraPos Question
#1

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!
Reply
#2

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.
Reply
#3

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.
Reply
#4

If you want a free camera that can look around, use AttachCameraToObject and attach it to an object.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)