Sure, I can help you with that. It seems there might be an issue with the indentation or the structure of your code. In the absence of a full context, I’ll provide a generic structure for a Python-like language, which is commonly used in Unreal Engine scripting. Adjust it according to the syntax rules of Unreal Editor for Fortnite:
if (condition):
// Code block for the "if" condition
// ...
else:
// Code block for the "else" condition
(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 ===")
elif (randomNumber == 2):
set winB = true
TeleB.Teleport(player)
Logger.Print("=== Winner B ===")
elif (randomNumber == 3):
set winC = true
TeleC.Teleport(player)
Logger.Print("=== Winner C ===")
Key points:
- The
if
andelse
conditions should be followed by a colon (:
). - Ensure consistent indentation within the
else
block. - Replace
if
withelif
for subsequent conditions within theelse
block.
Make sure to adapt this structure to the specific syntax rules of Unreal Editor for Fortnite. If the issue persists or if there are specific rules for Unreal Editor that differ from the generic structure I provided, please provide more details, and I’ll do my best to assist you.