Understanding devices/script connection

I followed the example for Team Elimination Game provided. I then wanted to expand on the Sentry events. Below is from the tutorial, slightly modified,

for (Sentry : Sentries):
Sentry.EliminatingAgentEvent.Subscribe(TestPlayerEliminated) # Subscribe to each Sentry

TestPlayerEliminated(Agent: ?agent) : void =
Print(“Player Down!”)

Can you help me understand how I could call functions, for example ResetAlertCooldown() on the Sentry. Is there a way to attach a verse script to the Sentry perhaps?

I think you’re looking for this