VerseIsland
Feed Learn Leaderboard Guides Reference Explore Search Docs Verse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Fortnite › General · Up to Fortnite · General · 6 of 123 in General
Browse Fortnite

Coordinate Battle Code

utilities.verse

|  |  |
| --- | --- |
|  | using{/Verse.org/Simulation} |
|  | using{/Verse.org/Random} |
|  | using{/UnrealEngine.com/Temporary/SpatialMath} |
|  |  |
|  | DataTypes<public> := module: |
|  |  |
|  | tile_coordinate<public> := class<concrete>: |
|  | Left<public>:int = 0 |
|  | Forward<public>:int = 0 |
|  |  |
|  | bounds<public> := class<concrete>: |
|  | @editable |
|  | Low<public>:int = 0 |
|  | @editable |
|  | High<public>:int = 0 |
|  |  |
|  | board_bounds<public> := class<concrete>: |
|  | @editable |
|  | LeftBounds<public>:bounds = bounds{} |
|  | @editable |
|  | ForwardBounds<public>:bounds = bounds{} |
|  |  |
|  | marker_type<public> := enum<open>: |
|  | Hit |
|  | Miss |
|  | Unknown |
|  |  |
|  | move_type<public> := enum<open>: |
|  | Attack |
|  | Reveal |
|  | Unknown |
|  |  |
|  | UtilityFunctions<public> := module: |
|  |  |
|  | using{DataTypes} |
|  |  |
|  | Abs(TileCoordinate:tile_coordinate)<transacts>:tile_coordinate = |
|  | tile_coordinate: |
|  | Left := Abs(TileCoordinate.Left) |
|  | Forward := Abs(TileCoordinate.Forward) |
|  |  |
|  | operator'-'(LeftTileCoordinate:tile_coordinate, RightTileCoordinate:tile_coordinate)<transacts>:tile_coordinate = |
|  | tile_coordinate: |
|  | Left := LeftTileCoordinate.Left - RightTileCoordinate.Left |
|  | Forward := LeftTileCoordinate.Forward - RightTileCoordinate.Forward |
|  |  |
|  | ManhattanDistance<public>(TileCoordinateOne:tile_coordinate, TileCoordinateTwo:tile_coordinate)<transacts>:int = |
|  | Difference := Abs(TileCoordinateOne - TileCoordinateTwo) |
|  | Difference.Left + Difference.Forward |
|  |  |
|  | AreTileCoordinatesEqual<public>(LeftTileCoordinate:tile_coordinate, RightTileCoordinate:tile_coordinate)<decides><transacts>:void = |
|  | LeftTileCoordinate.Left = RightTileCoordinate.Left |
|  | LeftTileCoordinate.Forward = RightTileCoordinate.Forward |
|  |  |
|  | GenerateUniformRandomTileCoordinate<public>(BoardBounds:board_bounds)<transacts>:tile_coordinate = |
|  | tile_coordinate: |
|  | Left := GetRandomInt(BoardBounds.LeftBounds.Low, BoardBounds.LeftBounds.High) |
|  | Forward := GetRandomInt(BoardBounds.ForwardBounds.Low, BoardBounds.ForwardBounds.High) |
|  |  |
|  | NumberOfTileCoordinates<public>(BoardBounds:board_bounds)<transacts>:int = |
|  | (BoardBounds.LeftBounds.High - BoardBounds.LeftBounds.Low) * (BoardBounds.ForwardBounds.High - BoardBounds.ForwardBounds.Low) |

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in
    📄
    Source
    Epic Games

    © Epic Games. Official Epic developer documentation, shown here as a reference with a link to the original. All rights remain with Epic Games. Terms ↗

    View original Sources & licensing
    Request removal
    Last updated May 12, 2026
    Keep exploring
    More in General · 6 of 123
    Prev
    6 set miniboard markers
    Next
    ab thumbnail testing in fortnite creative
    Browse all files in this folder (A–Z)
    Related topics
    • Modularnemesisar Br Ch5s1 Rare Weapons
    • Overview Of Coordinate Spaces General
    • Escape Room 8 Outside Cabin In Unreal Editor For Fortnite Tutorials
    • Using Accolade Devices In Unreal Editor For Fortnite Devices
    • Build A Game In Unreal Editor For Fortnite Building & Props

    Related

    Open in graph →

    Related topics

    • Modularnemesisar Br Ch5s1 Rare
    • Overview Of Coordinate Spaces
    • Escape Room 8 Outside Cabin In Unreal Editor For Fortnite
    • Using Accolade Devices In Unreal Editor For Fortnite
    • Build A Game In Unreal Editor For Fortnite
    VerseIsland · an archipelago of Verse & UEFN knowledge
    🗺️ Island atlas Learn Guides History About & Press Sources & Licensing Status

    Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

    🦜

    Scout · your island guide

    The Isle of Verse