# Can a trigger box be used to open a coding file?

**URL:** <https://forums.unrealengine.com/t/can-a-trigger-box-be-used-to-open-a-coding-file/431349>\
**Category:** Community & Industry Discussion\
**Tags:** coding, interaction, triggerbox, unreal-engine, question\
**Created:** [August 10, 2018, 6:00am UTC](https://forums.unrealengine.com/t/can-a-trigger-box-be-used-to-open-a-coding-file/431349 "2018-08-10T06:00:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e13c5712](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e13c5712](https://forums.unrealengine.com/u/anonymous_user_e13c5712)\
**Post date:** [August 10, 2018, 6:00am UTC](https://forums.unrealengine.com/t/can-a-trigger-box-be-used-to-open-a-coding-file/431349/1 "2018-08-10T06:00:52Z")

</div>

I’m a student and this is for my first coding class, where we’re using a program called processing.

My intent is to create a museum in unreal that has the player interact with the paintings hanging on the walls, opening the processing file that has them paint out the image. I’ve written the code and created the scene but I don’t know how to make unreal and processing interact that way, I’ve been told its possible but not how. Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [August 10, 2018, 7:06am UTC](https://forums.unrealengine.com/t/can-a-trigger-box-be-used-to-open-a-coding-file/431349/2 "2018-08-10T07:06:23Z")

</div>

Hello,

TriggerBox is ismply something that call OnBeginOverlap event so you can do anything with it.

Reading/Writing to file [FFileHelper | Unreal Engine Documentation](http://api.unrealengine.com/INT/API/Runtime/Core/Misc/FFileHelper/index.html)

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

There is simple solution [Read and Write data from text file - Programming & Scripting - Unreal Engine Forums](https://answers.unrealengine.com/questions/88289/read-and-write-data-from-text-file.html)

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [August 12, 2018, 3:29pm UTC](https://forums.unrealengine.com/t/can-a-trigger-box-be-used-to-open-a-coding-file/431349/3 "2018-08-12T15:29:42Z")

</div>

Yeah, instead of saying what you cannot do you just click -1.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e13c5712](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e13c5712](https://forums.unrealengine.com/u/anonymous_user_e13c5712)\
**Post date:** [August 13, 2018, 2:16am UTC](https://forums.unrealengine.com/t/can-a-trigger-box-be-used-to-open-a-coding-file/431349/4 "2018-08-13T02:16:38Z")

</div>

I mean, I wasn’t the one who downvoted the comment, I gave you an upvote. Not sure who voted negatively.

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [August 13, 2018, 7:39am UTC](https://forums.unrealengine.com/t/can-a-trigger-box-be-used-to-open-a-coding-file/431349/5 "2018-08-13T07:39:48Z")

</div>

Sorry, do you figured out how to do it?

PS: Thanks for upvote.

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [August 13, 2018, 7:46am UTC](https://forums.unrealengine.com/t/can-a-trigger-box-be-used-to-open-a-coding-file/431349/6 "2018-08-13T07:46:09Z")

</div>

If you want simple solution you can use Rama victory plugin. It contains blueprint nodes for files.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e13c5712](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e13c5712](https://forums.unrealengine.com/u/anonymous_user_e13c5712)\
**Post date:** [August 14, 2018, 8:22pm UTC](https://forums.unrealengine.com/t/can-a-trigger-box-be-used-to-open-a-coding-file/431349/7 "2018-08-14T20:22:27Z")

</div>

Not yet and it’s really been driving me nuts, I’ve learned that what I want is to turn it into an executable but I haven’t been able to get that to run in game either. I’m currently downloading all the visual studio add ons that might be relevant in hopes that this was the issue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e13c5712](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e13c5712](https://forums.unrealengine.com/u/anonymous_user_e13c5712)\
**Post date:** [August 14, 2018, 8:25pm UTC](https://forums.unrealengine.com/t/can-a-trigger-box-be-used-to-open-a-coding-file/431349/8 "2018-08-14T20:25:11Z")

</div>

I will certainly look into Rama victory plug in and see if that’s what finally gets this executable to tick, also I greatly appreciate your input, I’ve had no help from my professor who expects this done in such a ridiculous time window so it’s nice to actually have some help.

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [August 14, 2018, 9:29pm UTC](https://forums.unrealengine.com/t/can-a-trigger-box-be-used-to-open-a-coding-file/431349/9 "2018-08-14T21:29:12Z")

</div>

If you wanna do it only for windows… it’s pretty easy.

[http://www.cplusplus.com/doc/tutorial/files/](http://www.cplusplus.com/doc/tutorial/files/)

C++ API is realy good. Take a look at this. I will make sample later or tomorrow.

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [August 14, 2018, 9:35pm UTC](https://forums.unrealengine.com/t/can-a-trigger-box-be-used-to-open-a-coding-file/431349/10 "2018-08-14T21:35:28Z")

</div>

What executable do you need?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e13c5712](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e13c5712](https://forums.unrealengine.com/u/anonymous_user_e13c5712)\
**Post date:** [August 14, 2018, 10:50pm UTC](https://forums.unrealengine.com/t/can-a-trigger-box-be-used-to-open-a-coding-file/431349/11 "2018-08-14T22:50:17Z")

</div>

The Rama victory plug in was exactly what I needed, seriously thank you for that, this project had me at my wits end, so glad to be able to finish it. You’re a champ mate.
