Set Miniboard Markers
To mark up the miniboard with indicators showing which tiles on your board have been attacked, you need to convert a board tile coordinate to a world location on the miniboard.
Convert Tile Coordinate to World Transform on Miniboard
The procedure to convert a tile coordinate to a world location on the miniboard is:
- Obtain the scale factor of the miniboard.
- Convert the tile coordinate to
vector3by using the scale factor. - Rotate the marker to match the rotation of the miniboard.
- Return the constructed transform.
Create a function named GetDimensions to obtain the dimensions of the game board:
| | |
| --- | --- |
| | using { /Fortnite.com/Devices } |
| | using { /Verse.org/Simulation } |
| | using { /UnrealEngine.com/Temporary/Diagnostics } |
| | using { /UnrealEngine.com/Temporary/SpatialMath } |
| | using { /Verse.org/Assets } |
| | using { DataTypes } |
| | using { UtilityFunctions } |
| | |
| | board<public> := class(creative_device): |
| | |
| | ... |
| | |
| | GetDimensions<public>()<transacts>:vector3 = |
| | vector3: |
| | Left := 1.0 * (Bounds.LeftBounds.High - Bounds.LeftBounds.Low) |
| | Forward := 1.0 * (Bounds.ForwardBounds.High - Bounds.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 your BrainDead.TV / BrainDeadGuild Discord account for full access.