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

cameraTrack()

Instruct the camera to track a droid...

 

Syntax

cameraTrack(droid);

Parameters

ParameterTypeMandatoryNotesWarzone Version
droidDroid object(tick)

The droid to track – the camera will follow the droid until its destroyed.

You can stop tracking by passing in a value of null.

3.2

Return value

(question)

Example

 

Availability 3.2+

Requires:

  • Warzone 3.2 or above
Contents

Jump to:

See also

Related articles:

  • cameraZoom() – transition camera zoom level to a new value
  • cameraSlide() – slide the camera to a new x,y tile co-ordinate
  • centreView() – center the camera on a specific x,y tile co-ordinate

Â