Skip to content

Doodads

ChiefOfGxBxL edited this page Jun 2, 2018 · 7 revisions

Translator

Translator.Doodads

Usage

var doodadsTranslator = new Translator.Doodads(doodadData);
// Now you can write doodadsTranslator.buffer to a war3map.doo file

Specification

doodadData: [<Doodad>]; // Array of doodads

Where <Doodad> is a doodad structure defined by:

{
  id: <Int>,
  type: <String>,
  variation: <Int = 0>,
  position: [<Float>, <Float>, <Float>],
  angle: <Float = 0>, // in radians
  scale: [<Float = 1>, <Float = 1>, <Float = 1>],
  life: <Int = 100> // % health (0-100),
  flags: { <Object = { visible: true, solid: true }>
    visible: true,
    solid: true
  }
}

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