# Understanding devices/script connection

**URL:** <https://forums.unrealengine.com/t/understanding-devices-script-connection/1944246>\
**Category:** Programming & Scripting\
**Tags:** fortnite-creative, unreal-editor-for-fortnite, question, fortnite\
**Created:** [July 20, 2024, 7:06pm UTC](https://forums.unrealengine.com/t/understanding-devices-script-connection/1944246 "2024-07-20T19:06:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bearofaman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bearofaman](https://forums.unrealengine.com/u/bearofaman)\
**Post date:** [July 20, 2024, 7:06pm UTC](https://forums.unrealengine.com/t/understanding-devices-script-connection/1944246/1 "2024-07-20T19:06:31Z")

</div>

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,

> **[8. Final Result | Unreal Editor for Fortnite Documentation | Epic Developer...](https://dev.epicgames.com/documentation/en-us/uefn/team-elimination-game-8-final-result-in-verse)**
>
> Use Verse to create a multiplayer competitive game mode that advances teams through a series of weapons.

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?

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [July 25, 2024, 8:51am UTC](https://forums.unrealengine.com/t/understanding-devices-script-connection/1944246/2 "2024-07-25T08:51:03Z")

</div>

I think you’re looking for this

> [@Guide to Event Subscribing with Additional Parameters (Handler Functions)](https://forums.unrealengine.com/t/guide-to-event-subscribing-with-additional-parameters-handler-functions/793925):
>
> It seems like a common problem creators run into while learning Verse is trying to pass in additional parameters while subscribing events to functions. For example, if you have multiple buttons that you want to print a different color based on a string parameter, you might try subscribing the InteractedWithEvent to a function like PrintColor(Color : string). This would cause an error, because (generally) by default all events can only be subscribed to a function with an agent parameter. The solu…
