Page 1 of 1

[Solved] On Screen Messages

Posted: Tue Oct 21, 2014 5:22 am
by KadoDragon
Is there a way to make on screen messages appear? For example, I walk on a floor trigger and a message shows up on the screen saying something.

Re: On Screen Messages

Posted: Tue Oct 21, 2014 6:17 am
by ScroLL
This is off the top of my head but should be correct.

Make a floor trigger that connects to a script entity and runs the customMessage function. the script should have the following code

Code: Select all

function customMessage()
    hudPrint("This is my custom message. Hello world!")
end

Re: On Screen Messages

Posted: Tue Oct 21, 2014 6:20 am
by SnowyOwl47
ScroLL wrote:This is off the top of my head but should be correct.

Make a floor trigger that connects to a script entity and runs the customMessage function. the script should have the following code

Code: Select all

function customMessage()
    hudPrint("This is my custom message. Hello world!")
end
Correct and use \n to make enters whatever there called like this
\n =

That gap

Re: On Screen Messages

Posted: Tue Oct 21, 2014 7:12 am
by KadoDragon
SnowyOwl47 wrote:
ScroLL wrote:This is off the top of my head but should be correct.

Make a floor trigger that connects to a script entity and runs the customMessage function. the script should have the following code

Code: Select all

function customMessage()
    hudPrint("This is my custom message. Hello world!")
end
Correct and use \n to make enters whatever there called like this
\n =

That gap
Are you refering to a Hard Return.
Like
That?

EDIT: Ooooh! I just thought of something. Am I able to play a sound with a trigger too? I could do some simple voice acting narration to go with the hud messages. Would give me an excuse to use my $100 microphone. :P

EDIT 2: Kay. I found the sound entity. Dur... But, I don't know how to import a sound. I'm assuming it's like importing music. I tried but only failed. Would like to know how to import sounds.