# Creating gateway event tag change scripts for UDTs

**URL:** <https://forum.inductiveautomation.com/t/creating-gateway-event-tag-change-scripts-for-udts/103700>\
**Category:** Ignition\
**Tags:** scripting, perspective, ignition81\
**Created:** [March 14, 2025, 1:27pm UTC](https://forum.inductiveautomation.com/t/creating-gateway-event-tag-change-scripts-for-udts/103700 "2025-03-14T13:27:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hek](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@hek](https://forum.inductiveautomation.com/u/hek)\
**Post date:** [March 14, 2025, 1:27pm UTC](https://forum.inductiveautomation.com/t/creating-gateway-event-tag-change-scripts-for-udts/103700/1 "2025-03-14T13:27:20Z")

</div>

I am running into an issue when wanting to create gateway event tag change scripts for a UDT. My UDT has several tags that interact with each other, such as checking values from one and comparing it to another as well as reading and writing between them. I want to use gateway events to write these scripts but don't know how I can use the tag paths of the different instances of the UDT.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 14, 2025, 3:08pm UTC](https://forum.inductiveautomation.com/t/creating-gateway-event-tag-change-scripts-for-udts/103700/2 "2025-03-14T15:08:44Z")

</div>

You have to use the complete paths to the instance members that you want to trigger the gateway event.
