I have custom creative device as below. Device is on the map and “OnBegin” is triggered and printed on screen.
However, my score manager does not call “ScoreOutputEvent” even though it award a score. I know that because I enabled “DIsplay score update on HUD” and that works.
Unless I’m doing something wrong, this is bug where ScoreManager does not trigger ScoreOutputEvent.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
# A Verse-authored creative device that can be placed in a level
hello_world_device := class(creative_device):
@editable
var ScoreManager : score_manager_device = score_manager_device{}
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
Print("OnBegin")
ScoreManager.ScoreOutputEvent.Subscribe(OnScoreOutputEvent)
OnScoreOutputEvent(Agent : agent) : void =
Print("OnScoreOutputEvent")