How do I resolve this error within my script? I’m not able to get the loop to start.
using { /Fortnite.com/Characters }
using { /Fortnite.com/Devices }
using { /Fortnite.com/Game }
using { /Fortnite.com/UI }
using { /Verse.org/Simulation }
using { /Verse.org/Colors }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /UnrealEngine.com/Temporary/Diagnostics }
effect_neon := class(creative_device):
@editable VFXSpark: vfx_spawner_device = vfx_spawner_device{}
@editable PlayerSpawner : player_spawner_device = player_spawner_device{}
OnPlayerSpawned(Agent: agent): void=
PlayerSpawner.SpawnedEvent.Subscribe(OnPlayerSpawned)
Print ("Spawnado")
spawn{ ActivateVFX() } # Dar ínicio ao bloco ActivateVFX
ActivateVFX(Character : fort_character) <suspends> : void :=
Print ("Loop Iniciado")
loop:
if:
Character.IsActive[] # Verifica se o personagem ainda está ativo
then:
Pos := Character.GetTransform().Translation
Rot := Character.GetTransform().Rotation
if:
VFXSpark.TeleportTo[Pos, Rot] # Teleporta o efeito para a posição do personagem
Sleep(0.1)
OnBegin<override>()<suspends> : void :=
PlayerSpawner.SpawnedEvent.Subscribe(OnPlayerSpawned) # Inscreva-se para rastrear mudanças de respawn