SetCameraMode: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Syntax) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
<h2 style="margin:0; background:# | <h2 style="margin:0; background:#990000; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#fff; padding:0.2em 0.4em;">Please remember to set players camera mode back to "player" on resource unload, or you will encounter the invisible player 'bug'</h2> | ||
This function allows you to change a player's camera mode to either "player" or "fixed". | This function allows you to change a player's camera mode to either "player" or "fixed". |
Revision as of 11:02, 7 May 2007
Please remember to set players camera mode back to "player" on resource unload, or you will encounter the invisible player 'bug'
This function allows you to change a player's camera mode to either "player" or "fixed".
Syntax
bool setCameraMode ( player thePlayer, string mode )
Required Arguments
- thePlayer: The player whose camera you wish to modify.
- mode: The mode to be set. It has the following possible values:
- "player": Sets the camera to follow a player.
- "fixed": Fixes the camera in a set position/rotation.
Returns
Returns a bool with a value of true if the function was successful, false otherwise.