SA-MP Forums Archive
Need some help with cameras - 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: Need some help with cameras (/showthread.php?tid=455594)



Need some help with cameras - HeLiOn_PrImE - 02.08.2013

I know the functions to put a camera in one place or make it move. But those functions are mounting the camera in correlation with the map's origin. I need to mount the camera on a point that stands in correlation with the player's vehicle origin (like attaching it to the vehicle) and make it look on another point that is attached to the car. Is it possible? If yes, how?


Re: Need some help with cameras - Calabresi - 02.08.2013

You can try attaching an invisible or very tiny object to the vehicle and then, attaching the camera to the object.


Re: Need some help with cameras - HeLiOn_PrImE - 03.08.2013

And can I make the attatched camera look at a specific spot?
SetPlayerCameraLookAt works only with the map's coords.


Re: Need some help with cameras - HeLiOn_PrImE - 04.08.2013

bump


Re: Need some help with cameras - jamesbond007 - 04.08.2013

get other players position, or vehicle and set playercameralookat to it


Re: Need some help with cameras - HeLiOn_PrImE - 04.08.2013

I need this to update my tuning script. Since the dialog stays in the center of the screen I want to make the camera look at certain parts of the car, so that the players see what they are adding. I don't need the camera to look at a player, I need it to look at the car from a certain angle.


Re: Need some help with cameras - RajatPawar - 04.08.2013

Search for stocks to get positions from all angles of a car (Behind the car, across the car, besides the car, etc), get the co - ordinates and use the camera functions to look at those co - ordinates?


Re: Need some help with cameras - HeLiOn_PrImE - 04.08.2013

Stocks...damn I don't even know what are those...