Most of the information here is for Warzone 3.1 and above.
Javascript API
Links to all the main JS API features (see also: Index or Contents)...
Atmosphere | Components & Templates | Droids | Events & Timers | Features | Game Configuration | Groups | Labels | Map | Missions / Campaign | Players & Alliances | Objects | Power | Research & Technology | Script Environment | Structures | User Interface
Atmosphere
Components & Templates
- componentAvailable()
- enableComponent()
- makeComponentAvailable()
- enableTemplate()
- enumTemplates()
- getWeaponInfo()
- makeTemplate()
Droids
- orderDroidBuild()
- setDroidExperience()
- orderDroidObj()
- startTransporterEntry()
- buildDroid()
- droidCanReach()
- countDroid()
- setTransporterExit()
- enumDroid()
- orderDroid()
- isVTOL()
- addDroid()
- orderDroidLoc()
- enumCargo()
Events & Timers
- eventArea<Label>()
- eventAttacked()
- eventAttackedUnthrottled()
- eventBeacon()
- eventBeaconRemoved()
- eventChat()
- eventCheatMode()
- eventDesignCreated()
- eventDestroyed()
- eventDroidBuilt()
- eventDroidIdle()
- eventGameInit()
- eventGameLoaded()
- eventGameSaved()
- eventGameSaving()
- eventGroupLoss()
- eventMissionTimeout()
- eventObjectRecycled()
- eventObjectSeen()
- eventObjectTransfer()
- eventPickup()
- eventPlayerLeft()
- eventResearched()
- eventSelectionChange()
- eventStartLevel()
- eventStructureBuilt()
- eventStructureReady()
- eventTransporterArrived()
- eventTransporterDone()
- eventTransporterExit()
- eventTransporterLanded()
- eventTransporterLaunch()
- eventVideoDone()
Features
Game Configuration
- hackNetOff()
- hackNetOn()
- applyLimitSet()
- getBurnDamage()
- setBurnDamage()
- getBurnTime()
- setBurnTime()
- getDroidLimit()
- setDroidLimit()
- getExperienceModifier()
- setExperienceModifier()
- getStructureLimit()
- setStructureLimits()
- Player Initialisation
Groups
- enumGroup()
- newGroup()
- groupSizes[]
- groupSize()
- groupAddArea()
- orderGroupObj(group,dorder,obj)
- groupAddDroid()
- groupAdd()
Labels
Map
- hackMarkTiles()
- enumBlips()
- derrickPositions[]
- safeDest()
- enumRange()
- enumGateways()
- distBetweenTwoPoints()
- enumArea()
- mapWidth
- setScrollParams()
- mapName
- mapHeight
- getThreatsNear(x,y[,range])
- startPositions[]
- propulsionCanReach()
- tilesetType
- setNoGoArea()
Missions / Campaign
Players & Alliances
Objects
Power
Research & Technology
Script Environment
- Code sandboxing
- Common Mistakes
- debug()
- dump()
- Environment Sequences
- Error Handling
- hackAssert()
- include()
- Introduction
- Javascript Debugger
- Native JS Features
- Player Scripts
- Save / Load Cycle
- Scopes & Closures
- scriptName
- scriptPath
- syncRandom()
- Timers
- version
- WZscript (.vlo and .slo) to Javascript (.js)
Structures
- enumStruct()
- getDroidProduction()
- countStruct()
- setAssemblyPoint()
- enumStructOffWorld()
- enableStructure()
- activateStructure()
- pickStructLocation()
- addStructure()
- structureIdle()
- baseType
- wasDemolished(structure)
- isStructureAvailable()
- iHave(structure)
User Interface
- _() localise
- console()
- enumSelected()
- Mini Map and Design Mode
- playSound()
- audioAlert(filename,pos,despam)
- setTutorialMode()
- addReticuleButton()
- removeReticuleButton()
- Reticule buttons
- Camera