Running code once at program startup

I need a blueprint script to run only once at the beginning of the program. Is there any way of doing this?

Thank you very much. Event Init in the GameInstance works for what I wanted.

“Event Beginplay” will run once at the start of an Actor spawn. Another option is “Even Init” which will run when the GameInstance is initialized, but note that some object in the scene might not be loaded yet, so u might want to run the call to the code on a delay.

If this is not what ure looking for, can u explain further what type of blueprint script ure trying to run.