Wiki

Clone wiki

RtsPlayMakerActions / Action / GetChunk

Get Chunk

Gets component of specified chunk from a tile system when available, otherwise will simply 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.GetChunk.


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.
Chunk Row Index : int
Zero-based index of chunk row.
Chunk Column Index : int
Zero-based index of chunk 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