A zone represent a patch of land in Northgard that can be colonized and exploited by the players. Any entity is located in
All the buildings in the zone. Include player built buildings and gameplay buildings like Wolf Den or Swamp, but not decorative rocks, trees or grasses.
[HostOnly] The progress of a zone colonisation, if the zone is neutral or contested. Goes from 0 to 1, at which the zone owner become the owner referenced by colonizeBy.
[HostOnly] The player current attacking the zone, if the zone is neutral or contested.
[HostOnly] The maximum number of building a zone can hold, excluding the additional buildings from a developped zone or from Kraken's Shallow Waters
addUnit(kind:UnitKind, ?nb:Int, ?owner:Player, ?withSpawnSfx:Bool, ?modelsNb:Array<Int>, ?radiusMax:Float):Array<Unit>
[HostOnly] Add a unit of a certain UnitKind at a random position in the zone.
The kind of unit to add.
[Optional] A number of units to spawn at once. Spawn one by default.
[Optional] The units' owner. Is the main player by default.
[Optional] Set at true to play the spawn sound effect. False by default.
[Optional] An array of variant ids to change the visuals of each new units with variants.
[Optional] Constrain the spawn position inside a radius from the center of the zone.
Tell the quantity of a specific ore resource is available in the whole zone.
The kind of resource we want to count. Only works with an ore resource like Stone, Iron, RimeSteel or Gemstone.
Get the unit of a given kind which entered the zone first.