> For the complete documentation index, see [llms.txt](https://steijn.gitbook.io/devlogs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://steijn.gitbook.io/devlogs/unreal-engine/it-workz.md).

# IT-Workz

For my assignment for IT-Workz I worked on implementing an OSC server communication system that could take questions,  send them to the game screen and display them.&#x20;

{% file src="/files/VQPpuEAeDV2MD3LZHtAs" %}

To get this to work I needed 3 components, I need a server in unreal engine to listen with. I need a second device on the same network with an  OSC sender to send the necessary information and I need a (wifi) network&#x20;

For the unreal engine side i used the following setup:

<figure><img src="/files/6YU0kVRBymLeDCe155wy" alt=""><figcaption><p>OSC unreal engine</p></figcaption></figure>

It consists of creating the server, having an event when a message comes in and handling this event. \
the way it's handled currently makes it so if you send the text "hide", it hides the question screen. any other text gets displayed on the in-game screen.&#x20;

Next i'd need to set up the sending client. For this purpose i decided to use "Bitfocus Companion" it has an easy to use open source program which is made for OSC and could be extended to use with a streamdeck for ease-of-use

<figure><img src="/files/CBquDEN2WRSE1X4ffpqK" alt=""><figcaption><p>The sending client</p></figcaption></figure>

Currently you have to manually fill in the question and send this, however in a next version it can use a global variable instead, so you can set the variable from anywhere to be the question and don't need to constantly adjust the buttons.
