07.11.2016, 21:17
(
Последний раз редактировалось Michael@Belgium; 08.11.2016 в 15:12.
)
PlayerCameraRotateFromPoint
IntroWhile 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);
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)
- playerid - the id of the player to stop the camera rotation
Located on my github
http://www.youtube.com/watch?v=A9_IA5tzcAg