backport.structureIdle.js
Overview
Fixes a bug in Warzone 3.1 where structureIdle() didn't check the construction status of a building before returningtrue
.Availability
 Requires backport.js
Compatible with all versions of Warzone from 3.1 early alpha releases and above.
The backport will be applied for all versions of the game, but won't adversely affect future versions should the bug be fixed.
Notes
This backport checks that the structure's .status == BUILT before allowing a return value of true.
There may still be issues, however, because a structure's status doesn't get immediately updated when you tell it to build or attack something.
Script
See also
- Discussion of the time delay issue – in the main warzone forums
- structureIdle() – documentation for the function
- activateStructure() – activate structure (eg. tell laser satellite to attack)
- buildDroid() – instruct factory to build a droid
- pursueResearch() – instruct a research facility to research a technology
Â