The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
Message Pop up? - by T122002 - 12-12-2012, 05:11 AM
RE: Message Pop up? - by Statyk - 12-12-2012, 07:05 AM



Users browsing this thread: 1 Guest(s)