Wiki
Clone wikiRtsPlayMakerActions / Action / ClosestTileIndexFromMouse
Closest Tile Index From Mouse
Gets row and column of tile closest from mouse position.
Remarks
This action is useful when creating in-game level designers because it makes the process of accessing tiles easier.
Retrieves index of tile at edge of tile system when mouse pointer is out of range.
Input Variables
- Tile System Component : Rotorz.Tile.TileSystem
- Tile system.
- Every Frame : bool
- Indicates if action should be repeated for every frame.
Output Variables
- Row Index : int
- Zero-based row of tile.
- Column Index : int
- Zero-based column of tile.
Updated