SA-MP Forums Archive
attach camera to player/vehicle - 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: attach camera to player/vehicle (/showthread.php?tid=376550)



attach camera to player/vehicle - HeLiOn_PrImE - 10.09.2012

Is there a way to attach the camera to the player's vehicle or the player itself? I am trying to do some camera adjustments to a menu regardless of the player's position on the map.


Re: attach camera to player/vehicle - Roko_foko - 10.09.2012

Yes you can. First you need to attach an object on the player(or vehicle) then camera on the object.


Re: attach camera to player/vehicle - C00K13M0N$73R - 10.09.2012

AttachCameraToObject
AttachObjectToVehicle
SetCameraLookAt


Blank Object - Useful for AttachCameraToObject:19300


Re: attach camera to player/vehicle - HeLiOn_PrImE - 10.09.2012

Thank you very much. Looks like it was a piece of cake, but I'll give you a rep. My script will be awesome, when I finish with it....


Re: attach camera to player/vehicle - HeLiOn_PrImE - 12.09.2012

I really need a template or something to an already attached camera..I failed over and over again...