Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Devices
Summary
Having trouble killing my character at the end of a timer using verse device.
Steps to Reproduce
I’m attempting to kill a character in my game at the end of a timer using the following verse code (which is a snippet meant to kill the player provided by epic in the Parkour verse tutorial, with print statements for debugging):
HandleTimerExpired(MaybeAgent:?agent):void=
Logger.Print("Timer Ended")
if (Agent := MaybeAgent?):
Agent
# Eliminate the player
if:
FortCharacter:fort_character = Agent.GetFortCharacter[]
then:
FortCharacter.Damage(500.0)
Logger.Print("Die!")
Based on all Island and player settings I can find, my character should not be invincible. I can fall to my death and be respawned, and all of my respawn functions work just fine.
It’s worth nothing that the player character is in a Baller Vehicle, and that the vehicle is also capable of being destroyed.
Expected Result
“Timer Ended” and “Die!” should both print to the log, and my player character should be killed and respawn, resetting the timer (and a few other things specified in the rest of the code).
Observed Result
When I check the log during in-game testing, “Timer Ended” and “Die!” both print, but the character receives no damage. As mentioned above, I can fall to my death and be respawned, and all of my coded respawn functions work just fine. When the timer ends in my game, it just… ends and disappears. no death, no failure, and the timer disappears from the HUD.
Platform(s)
PC, Xbox One, Xbox Series X
Island Code
2277-1120-8448
Additional Notes
Thank you for looking into this!