User Tools

Site Tools


4rpl:commands:floodfillterrain

This is an old revision of the document!


Index

FloodFillTerrain

FloodFillTerrain(<-posX <-posZ <-minHeight <-maxHeight <-maxSize) ->listOfCells

Description

Returns a list of 2d vectors representing map coordinates that satisfy the following conditions:

  • The set is connected.
  • The set is empty or contains(X, Y)
  • The set is filled only with squares at height between min_height and max_height inclusive.
  • There are no more than maxSize squares in the set.

Examples

FloodFillTerrain(GetUnitCell(self) 1 20 999999) ->listOfCells

Index

4rpl/commands/floodfillterrain.1610121708.txt.gz · Last modified: 2021/01/08 11:01 by 127.0.0.1