Function; addCamera - HWRM/KarosGraveyard GitHub Wiki

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". --Mikali
  • I think you can only have a maximum of 20 (set in "camera.lua"). --Mikali

Scope

Related Pages

Comments

Page Status

Updated Formatting? Yes
Updated for HWRM? Initial

⚠️ **GitHub.com Fallback** ⚠️