Other great resources: Official JS API docs, Scripting Forum
Quick Reference
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
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