11.04.2012, 03:52
(
Последний раз редактировалось Jack_Wilson; 13.04.2012 в 22:43.
)
FirstPerson
[ame]http://www.youtube.com/watch?v=VVoMt9-GkuA&feature=player_embedded[/ame]
This include requires a file from the YSI library (y_hooks.inc) and can be found by clicking here.
This include provides basic functionality of FPS to users who are in need of it.
Camera has been disabled while inside vehicles because the aim of this include is provide simple functions, and it would require many offsets to be set for each vehicle.
The following functions are provided inside the include, and you require version 0.3e to use this include.
[ame]http://www.youtube.com/watch?v=VVoMt9-GkuA&feature=player_embedded[/ame]
This include requires a file from the YSI library (y_hooks.inc) and can be found by clicking here.
This include provides basic functionality of FPS to users who are in need of it.
Camera has been disabled while inside vehicles because the aim of this include is provide simple functions, and it would require many offsets to be set for each vehicle.
The following functions are provided inside the include, and you require version 0.3e to use this include.
-
Function: SyncCamera(playerid)
Description: This command is to be used when setting the players camera.
Recommendation: You could use a thirty second loop to keep the camera synchronized.
By default, the include already does this in three callbacks using y_hooks.
OnPlayerStateChange and OnPlayerSpawn. -
Function: SetThirdPerson(playerid, status)
Description: This function sets the state of the player using ToggleThirdPerson.
Disabled status forces the player back to First Person mode.
Values, true or false are only valid for status parameter. -
Function: ToggleThirdPerson(playerid)
Description: This function toggles the state of the player using ToggleThirdPerson.
If the players FirstPerson is disabled, you could use this function to toggle it which would enable it for the player. -
Function: GetViewMode(playerid)
Description: This function retrieves the current camera mode of the player.
MODE_FIRSTPERSON = (1)
MODE_THIRDPERSON = (2)