Bind the player camera to the given camera until unbound.
Copy Code | |
---|---|
bool BindCamera( int CameraIndex, bool AllowMovement = false, bool AllowRotation = true, bool AllowZoom = true ); |
CameraIndex
Type: int
The index of the camera. Use GetCameraCount to retrieve the count of cameras.
AllowMovement
Type: bool
true to allow the player to move the camera relative to this camera.
AllowRotation
Type: bool
true to allow the player to rotate the camera rerlative to this camera.
AllowZoom
Type: bool
true to allow the player to zoom the camera.
Returns true if the camera was bound, false if not.
Call UnbindCamera to unbind the bound camera.
Also, the camera gets unbound if the shape instance will be removed, or the camera will be removed or a different camera will be bound.
To set the player camera to this camera, call instead PlaceToCamera.