Camera movement - 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: Camera movement (
/showthread.php?tid=437484)
Camera movement -
FalconCRO - 15.05.2013
Is it possible to achieve normal camera movement with the mouse when spectating a random area? In other words, I'm not spectating a player or a vehicle, I'm in spectating mode, but I use SetPlayerCameraPos and possibly SetPlayerCameraLookAt to look at somewhere, but the camera is fixed then. I can't move it anywhere.
Re: Camera movement -
MP2 - 15.05.2013
AttachCameraTo(Dynamic/Player)Object.
Re: Camera movement -
FalconCRO - 15.05.2013
Quote:
Originally Posted by MP2
AttachCameraTo(Dynamic/Player)Object.
|
I don't see how exactly would this work if I don't have objects in that area. So in that case I would need to create an object who's purpose would be just to attach the camera on it? Any other ways maybe?
Re: Camera movement -
MP2 - 15.05.2013
The only way to set the player's camera to a fixed point and allow it to be moved is to do that. Create a blank object and attach the camera to that. You can't (AFAIK) set the initial view direction though.