Wiki

Clone wiki

RtsPlayMakerActions / Action / PaintPoint

Paint Point

Paints a circle or square point of tiles 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.PaintCircle and PaintingUtility.PaintSquare.


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.

Row Index : int
Zero-based row of tile to paint point at.
Column Index : int
Zero-based column of tile to paint point 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