Hi,
using the following verse code, I am displaying a UIText on the screen. I would like to know how to update individuals score value by the same amount to the scoreboard data. Also if it’s possible to decrement the score as well.
Thank you.
(FortCharacter: fort_character).UpdateDistance(TextBlock: text_block, Player: player) <suspends>: void =
loop:
Sleep(0.4)
DistanceVerticalMeters := FortCharacter.GetTransform().Translation.Z / 100.0
if (RoundedDevice := Floor[DistanceVerticalMeters] - 22):
TextBlock.SetText(UIText("- {RoundedDevice} m -"))
// here add RoundedDevice value to scoreboard for current player