This is my code in the first line i get this Error: vErr:S77: Unexpected “zombie_round_manager” following expression(3100)
View Problem (Alt+F8)
module zombie_round_manager
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
zombie_round_manager := class(creative_device):
@editable
ZombieSpawner : npc_spawner_device
@editable
ZombiesPerRoundBase : int = 5
@editable
ZombiesPerRoundMultiplier : float = 1.5
CurrentRound : int = 1
ZombiesRemaining : int = 0
OnBegin<override>() :=
StartNextRound()
StartNextRound() :=
multiplier := 1.0
for (i in range(1, CurrentRound - 1)):
multiplier *= ZombiesPerRoundMultiplier
ZombiesRemaining = ToInt(ZombiesPerRoundBase * multiplier)
Log("Runde {CurrentRound}: Spawne {ZombiesRemaining} Zombies")
for (Index in range(0, ZombiesRemaining - 1)):
ZombieSpawner.Spawn()
WaitForZombiesToDie()
WaitForZombiesToDie() :=
loop:
Sleep(1.0)
AliveZombies := ZombieSpawner.GetAliveNPCCount()
ZombiesRemaining = AliveZombies
if (AliveZombies <= 0):
Log("Alle Zombies eliminiert. Runde {CurrentRound} beendet.")
CurrentRound += 1
Sleep(3.0)
StartNextRound()