SOMA
Community created content for SOMA
Get community created content for SOMA. Even better, learn how to create your own content and to share it.
Learn More
Ebobo_нах 14 Jul, 2017 @ 10:18am
How do I program a terminal?
I would like to know how to program a computer to display text on it's screen in game.

I have not found any answers yet, somebody help
< >
Showing 1-2 of 2 comments
Draugemalf 9 21 Jul, 2017 @ 1:36am 
You see how they did it in SOMA, but basically you have to create a custom OnGui function and do what you want there.
You can see simpler examples in mods.
Draugemalf 9 21 Jul, 2017 @ 1:41am 
a very basic example would be this:
void OnGuiTerminal(const tString&in asEntityName, float afTimeStep)
{

StationGui_TextReaderSingle
(
"Window Title",
"Window Text",
cStationGui_TextReaderSettings(),
cVector3f(0.125, 0.175, 0),
cVector2f(0.75, 0.5)
);

}
after you have this in your script file you use OnGuiTerminal or whatever you call it in the OnGuiFunction in the editor for the terminal.
< >
Showing 1-2 of 2 comments
Per page: 1530 50