Compass Device
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Fortnite.com/UI }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/UI }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Verse.org/Colors }
using { /Verse.org/Assets }
units := enum:
KM
M
CM
compass_device := class(creative_device):
# The unit of measurement for distance
@editable
Units : units = units.M
# The size of the compass texture
@editable
CompassTextureSize : float = 45.0
# The distance at which the compass will hide
@editable
DistanceToHideCompass : float = 300.0
# The screen position of the compass
@editable
WidgetPos : vector2 = vector2{X := 0.5, Y := 0.9}
# The alignment of the compass
@editable
WidgetAlignment : vector2 = vector2{X := 0.5, Y := 1.0}
var TargetLocations : [player]vector3 = map{}
var DistanceTextblocks: [player]text_block = map{}
var DirectionWidgets: [player]texture_block = map{}
var UIPerPlayer: [player]?canvas = map{}
var BreakCompassAnimation: [player]?logic = map{}
# Compass textures
North : texture = UI.N
NorthEast : texture = UI.NE
East : texture = UI.E
SouthEast : texture = UI.SE
South : texture = UI.S
SouthWest : texture = UI.SW
West : texture = UI.W
NorthWest : texture = UI.NW
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.