T122002
Junior Member
Posts: 24
Threads: 10
Joined: Dec 2012
Reputation:
1
|
Message Pop up?
Hello everybody!
I have a question about messages. I was reading a forum before I posted this and I couldn't get it right. I thought I would be able to do something, like walking into a scripted area then a message popping up on screen.
Here is my .lang file:
Ah, the mansion! No turning back now.
Here is the .hps file:
AddEntityCollideCallback("Player", "Message_1", "Message1", true, 1);
void Message1(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "Popup1", 3);
}
And in my map, the scripted area is named "Message_1".
I thought that would work, but nothing happens. What am I doing wrong?
Thanks to everyone in advanced!
|
|
12-12-2012, 05:11 AM |
|
Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
RE: Message Pop up?
fix the display of your .lnag for us. The forums seem to have eaten the code a bit. Use "[ code ] blahblahblah [ /code ]" (without spaces) at the beginning and end of your .lang to keep it from eating the code up again.
(This post was last modified: 12-12-2012, 07:05 AM by Statyk.)
|
|
12-12-2012, 07:05 AM |
|