Wiki

Clone wiki

RtsPlayMakerActions / Action / PaintLine

Paint Line

Paints a line of tiles connecting two points using a brush (or erase if no brush is specified).

Refer to Brushes section of user guide for further information regarding brushes.


This action replicates functionality of PaintingUtility.PaintLine, PaintingUtility.StrokeLineWithCircle and PaintingUtility.StrokeLineWithSquare.


Screenshot of action user interface.

Remarks

When painting multiple tiles in sequence you should consider using the Begin Bulk Edit and End Bulk Edit actions to improve performance.

Input Variables

Tile System Component : Rotorz.Tile.TileSystem
Tile system of which to edit.
Brush (Optional) : Rotorz.Tile.Brush
The brush; a value of null indicates that tile should be erased.

From Row Index : int
Zero-based row of tile to start painting line from.
From Column Index : int
Zero-based column of tile to start painting line from.
To Row Index : int
Zero-based row of tile to finish painting line at.
To Column Index : int
Zero-based column of tile to finish painting line at.
Nozzle Type : BrushNozzle
Indicates the type of nozzle to stroke line with (Default: Square).
Nozzle Size / Radius : int
Size or radius of nozzle.

Variation Index : int
Zero-based index of desired tile variation. Specify -1 for randomization.
Variation Shift Count : int
Count of variations to shift by.

Randomize Rotation : bool
Indicates whether rotation should be randomized when painting tiles.
Rotation : int
Rotation of painted tiles.

Paint Around Existing Tiles : bool
Indicates whether new tiles should be painted around existing tiles rather than painting over them. This of course does not apply when erasing tiles.
Fill Rate Percentage : int
A value ranging between 0 and 100 (inclusive) which indicates the rate in which candidate tiles are filled. Specify a value lower than 100 to spray tiles onto a tile system.

Updated