Summary
Tutorial basics: The verse Damage and Heal methods don’t work for changing health of a character. The Verse scripts in Lessons 5 - 8 compile, but when executed don’t work.
Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Verse
Steps to Reproduce
For example in Lesson 6, this code:
OnBegin():void =
HurtPlayer()
Print(“Player Hurt”)
Sleep(25.0)
HealPlayer()
Print(“Player Healed”)
where HurtPlayer contains:
HurtPlayer(): void =
Playspace: fort_playspace = GetPlayspace()
AllPlayers: player = Playspace.GetPlayers()
if (FirstPlayer: player = AllPlayers[0]):
if (FortniteCharacter: fort_character = FirstPlayer.GetFortCharacter ):
FortniteCharacter.Damage(50.0) ←
Expected Result
← The character Health should decrease with 50, which should be visible in the game screen in the health bar.
Observed Result
The Health stays 100.0, so the health bar stays green completely.
Platform(s)
Unreal Editor for Fortnite Version: 5.8.0-50577083
Fortnite Release-39.40
Island Code
Verse hello_world_device template
Additional Notes
This worked correct when I went through the tutorial some 3 years ago. Any help would be appreciated!