Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:2.00

Description

Description:Defines limits for a "construction" camera. A construction camera is created using the code: "camconstruct" camCreate, and can be moved around by the user, within the specified limitations.

Syntax

Syntax:camera camConstuctionSetParams [origin, radius, height]
Parameters:
  • camera: Object - A "construction" camera.
  • origin: Position-2 - Position from which to calculate the radius limit.
  • radius: Number - Maximum distance the camera can move away from origin (default: 100).
  • height: Number - Maximum height above ground that the camera can be raised to (default: 30).
Return Value:Nothing

Examples

Examples:
// Create a camera 10m above the player, and allow it to be moved 100m laterally, and up to a height of 50m:
_cam = "camconstruct" camCreate (player modelToWorld [0,0,10]);
_cam camConstuctionSetParams [getpos player 100, 50];

Additional Information

See also: camCreate
Multiplayer: 
Problems: 

Notes