[Include] PlayerCameraRotateFromPoint - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] PlayerCameraRotateFromPoint (
/showthread.php?tid=621199)
PlayerCameraRotateFromPoint -
Michael@Belgium - 07.11.2016
PlayerCameraRotateFromPoint
Intro
While updating my server I wanted something new in my class selection. That the players camera would rotate above SF, LS or LV. I've searched around the forums, but yet I couldn't find anything other than
Lorenc's tutorial, I appreciate his work but it was laggy as fuck.
So I made this ...
Functions
Код:
native PlayerCameraRotateFromPoint(playerid, Float:x, Float:y, Float:z, Float:range, cam_speed = 3, bool: cam_overview = false, Float: cam_overview_height = 20.0);
native StopPlayerCameraRotate(playerid);
Clarification
PlayerCameraRotateFromPoint
- playerid - the id of the player to set the camera rotation
- Float
, Float:y, Float:z - the x, y and z position in-game.
- Float: range - how far the camera should rotate from the position aka range.
- cam_speed - the speed (in seconds) of the moving camera from stop to stop (Optional / Default = 3 seconds)
- cam_overview - should the camera act like an "overview", meaning it'll look down to the position instead of otherwise. (Optional / Default = no)
- cam_overview_height - the height of the camera that has to be added to the z position (so it can look down) (Optional / Default = 20)
StopPlayerCameraRotate
- playerid - the id of the player to stop the camera rotation
Download/example
Located on my github
http://www.youtube.com/watch?v=A9_IA5tzcAg
Re: PlayerCameraRotateFromPoint -
ExTaZZ69 - 08.11.2016
A video as example would be great.
Re: PlayerCameraRotateFromPoint -
TopShooter - 08.11.2016
I was looking for something like that, good job!
Re: PlayerCameraRotateFromPoint -
Michael@Belgium - 08.11.2016
Quote:
Originally Posted by ExTaZZ69
A video as example would be great.
|
Ok it did it quickly, but added anyway
Re: PlayerCameraRotateFromPoint -
Eoussama - 08.11.2016
Nice man,
Re: PlayerCameraRotateFromPoint -
MikeB - 08.11.2016
Yeah, nice.