Behaviour tree quiqstart guide - spotted time


I have done a simple behaviour tree based on this guide

I have a HUD which is displaying after game end. On it, I would like to put a timer, from first time our hero was spotted by the enemy till his death. In AgroCheck, when hero is spotted, I have put to set a value based on get game time in second. AgroCheck will be repeating all the time so the value will be changing. To avoid that, I made simple HUD with function. Inside it, there is node to check if the time spotted is different that 0, if yes then we subtract it from gametime and show on screen. The problem is Im missing object from cast to AgroCheck. Don’t know what inherit from it?