Wiki

Clone wiki

RtsPlayMakerActions / Action / GetChunkFromTileIndex

Get Chunk From Tile Index

Gets component of chunk that contains the specified tile index when available, otherwise will retrieve a value of null.

Tile systems are broken into chunks for a number of reasons which are described in the user guide. Chunk objects are generally only present when they contain one or more tiles (though there are exceptions to this, like when empty chunks are not erased).

Refer to Chunks section of user guide for further information regarding chunks.


This action replicates functionality of TileSystem.GetChunkFromTileIndex.


Screenshot of action user interface.

Remarks

In order to use this action you will need to define an "Object" variable of type Rotorz.Tile.Chunk. This variable can then be used to store the retrieved chunk component (that is if one exists!).

Input Variables

Tile System Component : Rotorz.Tile.TileSystem
Tile system from which to retrieve chunk.
Row Index : int
Zero-based index of tile row.
Column Index : int
Zero-based index of tile column.
Every Frame : bool
Indicates if action should be repeated for every frame.

Output Variables

Chunk Component : Rotorz.Tile.Chunk
The chunk component when present; otherwise a value of null.

Updated