Hi , Looks like you have a syntax error in your code. The error message indicates that there is a dangling ‘=’ assignment with no expressions or empty bracket block ‘{}’ on its right-hand side.
Here’s your code with a potential correction:
else:
(Player:player):void=
Logger.Print("=== GetRandom Function Activated ===")
RandomNum:int = GetRandomInt(1, 3)
Logger.Print("Picked Random Number. Number selected is {RandomNum}")
set randomNumber = RandomNum
if (randomNumber == 1):
set winA = true
TeleA.teleport(Player)
Logger.Print("=== Winner A ===")
if (randomNumber == 2):
set winB = true
TeleB.Teleport(player)
Logger.Print("=== Winner B ===")
if (randomNumber == 3):
set winC = true
TeleC.Teleport(player)
Logger.Print("=== Winner C ===")
Here are the changes I made:
- Replaced
=
with==
in theif
conditions to check for equality. - Added colons
:
at the end ofif
conditions. - Fixed the indentation to make the code structure clear.
Make sure to adapt the changes according to the specific syntax rules of Unreal Editor for Fortnite.
I hope I helped. He would be grateful if you left Subscriptions on my YouTube channel. Regards
YT:https://www.youtube.com/@grawik_ingraw