Game as exe on pi how to send 3.3v on output pin at certain point of game

Hey all,

We have a developer using gdevelop to create a short game for us, this game will be exported as a .exe file for use on a raspberry pi.

When the player entered into level 2 of the game, I need the game code to tell the raspberry pi to send 3.3v from its gpio to trigger a relay.

Is there any way to get the game code to run this function/ how would I go about this?