SetCameraTarget: Difference between revisions
Jump to navigation
Jump to search
JonChappell (talk | contribs) mNo edit summary |
JonChappell (talk | contribs) m (→Returns) |
||
Line 11: | Line 11: | ||
===Returns=== | ===Returns=== | ||
Returns a [[bool]] with a value of | Returns a [[bool]] with a value of ''true'' if the function was successful, ''false'' otherwise. | ||
==Example== | ==Example== |
Revision as of 03:46, 2 October 2006
This function allows you to set a specified player's camera to follow a specific element. This could be another player, a vehicle or an object.
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.