[Solved] On Screen Messages
- KadoDragon
- Posts: 34
- Joined: Sat Oct 18, 2014 3:54 am
[Solved] On Screen Messages
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.
Last edited by KadoDragon on Fri Oct 24, 2014 9:45 am, edited 1 time in total.
Re: On Screen Messages
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
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
- SnowyOwl47
- Posts: 148
- Joined: Fri Sep 12, 2014 10:41 pm
Re: On Screen Messages
Correct and use \n to make enters whatever there called like thisScroLL 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
\n =
That gap
- KadoDragon
- Posts: 34
- Joined: Sat Oct 18, 2014 3:54 am
Re: On Screen Messages
Are you refering to a Hard Return.SnowyOwl47 wrote:Correct and use \n to make enters whatever there called like thisScroLL 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
\n =
That gap
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.
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.