Homeworld 2 : FunctionaddCamera
Karos Graveyard ::
Function Reference :: Scope Reference :: Variable Reference
addCamera(<sCameraName>, <tTarget>, <tOrigin>)

Description
Adds a camera location to a ".level" file.

Example
addCamera("camera2", { -5347.623, 0, -5815.865, } , { -3735.116, 2199.638, -3459.261, })

Arguments
<sCameraName> : This is the name of the camera.
<tTarget> : This is a table of X, Z, and Y coordinates for the point the camera will look at, otherwise known as the camera's target.
<tOrigin> : This is a table of X, Z, and Y coordinates for the base point of the camera.

Notes
I think these are called "C/V camera focal points". - Mikail
I think you can only have a maximum of 20 (set in "camera.lua"). - Mikail

Scope

Related Pages:
:: ::