This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:commands:floodfillterrain [2024/03/16 16:31] – More details provided Vertu | 4rpl:commands:floodfillterrain [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 10: | Line 10: | ||
* The set is empty or contains (posX, posZ) | * The set is empty or contains (posX, posZ) | ||
* The set is filled only with squares at height between min_height inclusive and max_height exclusive. (i.e. if set to 3 and 6, it will grab cells with a height of 3, 4, or 5. | * The set is filled only with squares at height between min_height inclusive and max_height exclusive. (i.e. if set to 3 and 6, it will grab cells with a height of 3, 4, or 5. | ||
- | * MaxSize is the upper bound limit for cell iteration. It is not directly related to the size of the list that is returned. The number of Cells returned is the number of cells that fit the criteria specified. | + | * MaxSize is the upper bound limit for cell iteration. It is not directly related to the size of the list that is returned. The number of Cells returned is the number of cells that fit the criteria specified. |
- | . | + | |
- | * minHeight: Minimum height a cell must be. | + | |
- | * maxHeight: Maximum height a cell can be. (This is an exclusive bound, a minHeight of 10 maxHeight of 11 will only find cells of a height of 11). | + | |
- | * maxSize: Maximum number of cells that can be found. | + | |
- | Warning: This currently has a bug (current for 1.4), and will accept heights 1 tile below min_height, so a min height of 3 will add tiles with a height of 2 as well, but not tiles with a height of 1.\\ | + | Warning: This currently has a bug (current for 1.4), and will accept heights 1 tile below min_height, so a min height of 3 will add tiles with a height of 2 as well, but not tiles with a height of 1. |
=== Examples === | === Examples === |