Skip to content

Cameras

ChiefOfGxBxL edited this page Jun 2, 2018 · 5 revisions

Translator

Translator.Cameras

Usage

var result = new Translator.Cameras.jsonToWar(cameraData);
// Now you can write result.buffer to a war3map.w3c file

Specification

cameraData: [<Camera>]; // Array of cameras

Where <Camera> is a camera structure defined by:

{
  name: <String>,
  target: {
    x: <Float>,
    y: <Float>
  },
  offsetZ: <Float>, // i.e. height
  rotation: <Float = 0>, // in degrees
  aoa: <Float>, // angle of attack, in degrees
  distance: <Float>,
  roll: <Float = 0>,
  fov: <Float>, // field of view, in degrees
  farClipping: <Float>
}

Translators

World entities

Place entities like units, doodads, etc. on the map

Units (unit or item)
Doodads
Terrain
Regions
Cameras
Sounds

Object definitions

Edit objects in the object editor

Units
Items
Destructables
Doodads
Abilities
Buffs
Upgrades

Other

Miscellaneous files like imports and strings

Imports
Strings
Info

Clone this wiki locally