Hey, where do I find the syntax list? I’m trying to use a for each and it does not work I tried foreach and for each here’s my code:
Playspace : fort_playspace = GetPlayspace()
AllPlayers : []player = Playspace.GetPlayers()
for each Player in AllPlayers:
if(FortniteCharacter : fort_character = Player.GetFortCharacter[])
FortniteCharacter.damage(50.0)
MattRix
(MattRix)
2
Best place to start is the official Verse Language Quick Reference
BeKoLLC
(BeKoLLC)
3
An example with the code you provided would be
Playspace : fort_playspace = GetPlayspace()
AllPlayers : []player = Playspace.GetPlayers()
for (Player : AllPlayers):
if(FortniteCharacter : fort_character = Player.GetFortCharacter[]):
FortniteCharacter.Damage(50.0)
1 Like