[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
#2

A video as example would be great.
Reply
#3

I was looking for something like that, good job!
Reply
#4

Quote:
Originally Posted by ExTaZZ69
Посмотреть сообщение
A video as example would be great.
Ok it did it quickly, but added anyway
Reply
#5

Nice man,
Reply
#6

Yeah, nice.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)