Basic Billboard Device Text Setter
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
BillboardTextDevice := class(creative_device):
# Use this to select the Billboard from the scene
# This lets the BillboardTextDevice creative device know which Billboard device
# to change the text of
@editable
Billboard : billboard_device = billboard_device{}
# Defines CurrentNumber which is a variable so that it can be changed later
var CurrentNumber : int = 1
OnBegin<override>()<suspends>:void=
# Sets the text of the Billboard to the message in BillboardText
# at the start of the game
BillboardTextSetter()
# Waits for 5 seconds.
# This is just for demonstration purposes and will vary by game.
Sleep(5.0)
# Changes the value of CurrentNumber, and simultaneously sets CurrentNumber
# to be equal to the result of the operation (in this case, adding 2)
set CurrentNumber += 2
# Then updates the text on the billboard to say the value of CurrentNumber, which will be 3
BillboardTextSetter()
# Text to display onto the selected Billboard device
BillboardText <localizes> (Number : int) : message = "The current value of number is {Number}"
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.