(info) Other great resources: Official JS API docs, Scripting Forum

cameraZoom()

Zoom the camera in or out...

 

Syntax

cameraZoom(zoom, speed);

Parameters

ParameterTypeMandatoryNotesGame Version
zoomNumber(tick)

The zoom level to transition to.

Normal zoom range is 500 ↔ 5000.

3.2+
speedNumber(tick)

The amount of time for the camera to transition from it's current zoom level to the new zoom level, in milliseconds.

3.2+

Return value

(question)

Example

 

Availability 3.2+

Requires:

  • Warzone 3.2 or above
Contents

Jump to:

See also

Related articles:

  • cameraSlide() – tell the camera to slide to a new position
  • cameraTrack() – tell the camera to track a specific droid
  • centreView() – center the camera on a specific x,y tile co-ordinate

Â