-
Notifications
You must be signed in to change notification settings - Fork 6
Tile
LordMidas edited this page Jun 24, 2024
·
6 revisions
File path: scripts/config/msu/tile.nut
::MSU.Tile.canResurrectOnTile( _tile, _force = false)
// _tile is a Battle Brother tile table
// _force is a booleanReturns true if there is a corpse on the tile and,
it can be resurrected or if _force is set to true.
Returns false otherwise.
This function can be hooked by mods to add additional functionality.
::MSU.Tile.getNeighbors( _tile )
// _tile is a Battle Brothers tile instanceReturns an array containing the neighboring tiles of _tile.
If you want to further filter down the list of tiles, we recommend using built-in or MSU functions. Examples:
// get random neighbor
::MSU.Array.rand(::MSU.Tile.getNeighbors(myTile));
// get empty tiles
::MSU.Tile.getNeighbors(myTile).filter(@(_, _t) _t.IsEmpty);- NOTE: MSU guarantees backwards compatibility for documented features and code only. Undocumented features/code of MSU may be changed at any time without notice, so we advise against using/referencing such code in your projects.
- For bug reports or feature requests, please create issues.
- If you would like to join the team, write to us at msu.team@protonmail.com.