Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Message Pop up?
T122002 Offline
Junior Member

Posts: 24
Threads: 10
Joined: Dec 2012
Reputation: 1
#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
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
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
Find




Users browsing this thread: 1 Guest(s)