SetCameraTarget: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
This function allows you to set a | {{Server function}} | ||
This function allows you to set a player's camera to follow a specific [[element]]. This could be another player, a vehicle or an object depending on what the camera mode expects. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> |
Revision as of 14:52, 16 August 2007
This function allows you to set a player's camera to follow a specific element. This could be another player, a vehicle or an object depending on what the camera mode expects.
Syntax
bool setCameraTarget ( player thePlayer, element target )
Required Arguments
- thePlayer: The player whose camera you wish to modify.
- target: The element that you want the camera to follow.
Returns
Returns a bool with a value of true if the function was successful, false otherwise.