# Update Event Script Actor and Resources

**URL:** <https://forum.inductiveautomation.com/t/update-event-script-actor-and-resources/61205>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [June 26, 2022, 7:12am UTC](https://forum.inductiveautomation.com/t/update-event-script-actor-and-resources/61205 "2022-06-26T07:12:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![monc](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@monc](https://forum.inductiveautomation.com/u/monc)\
**Post date:** [June 26, 2022, 7:12am UTC](https://forum.inductiveautomation.com/t/update-event-script-actor-and-resources/61205/1 "2022-06-26T07:12:05Z")

</div>

Hello,

How to call the Parameters on the Gateway Update Script?

I can’t seem find a video or example on how to use the parameters for Gateway Update Script.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/0/30b618955498d3a4b17d7c507c5ddb6250ec35f1.png)

Thanks,  
Mon

---

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [June 26, 2022, 2:48pm UTC](https://forum.inductiveautomation.com/t/update-event-script-actor-and-resources/61205/2 "2022-06-26T14:48:16Z")

</div>

Hello, you simply call out **actor** or **resources**. Copy the script below and check the wrapper.log for the print statements. If you don’t have access to the console, you can you system.util.getLogger() to print to the gateway status log web page.

```auto
print 'actor:', actor
print 'resources added:', resources['added']
print 'resources modified:', resources['modified']
print 'resources removed:', resources['removed']

```

---

<div class="post-metadata">

**Author:** ![monc](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@monc](https://forum.inductiveautomation.com/u/monc)\
**Post date:** [June 27, 2022, 12:23am UTC](https://forum.inductiveautomation.com/t/update-event-script-actor-and-resources/61205/3 "2022-06-27T00:23:20Z")

</div>

Thanks!
