[Include] PlayerCameraRotateFromPoint
#1

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
Reply


Messages In This Thread
PlayerCameraRotateFromPoint - by Michael@Belgium - 07.11.2016, 21:17
Re: PlayerCameraRotateFromPoint - by ExTaZZ69 - 08.11.2016, 10:57
Re: PlayerCameraRotateFromPoint - by TopShooter - 08.11.2016, 12:07
Re: PlayerCameraRotateFromPoint - by Michael@Belgium - 08.11.2016, 15:14
Re: PlayerCameraRotateFromPoint - by Eoussama - 08.11.2016, 16:08
Re: PlayerCameraRotateFromPoint - by MikeB - 08.11.2016, 17:02

Forum Jump:


Users browsing this thread: 1 Guest(s)