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
How to "Make message appear when interacting object" (SOLVED)
HumiliatioN Offline
Posting Freak

Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation: 18
#3
RE: How to "Make message appear when interacting object" ANSWER!

(12-27-2010, 02:34 PM)ModManDann Wrote: it doesn't work like that.

You need to go to the level editor and click your door, click the entity tab and find the PlayerInteractCallback field. Write the following in it: LockedDoor .
Now go to your hps file and paste the following code in the bottom of it

LockedDoor(string &in entity)
    {
        SetMessage("Message", "Locked1", 20.0f);
    }

Not working :/

I have this:

<CATEGORY Name ="Message">
<Entry Name="Locked0">It's Locked. I have to find key.</Entry>
<Entry Name="Locked1">This Office is Locked. Find key.
</CATEGORY>

Level door works Locked0 message...

void LockedDoor(string &in entity)
{
SetMessage("Message", "Locked1", 20.0f);
}


But Locked1 doesnt work Sad

“Life is a game, play it”
12-27-2010, 03:42 PM
Find


Messages In This Thread
RE: How to "Make message appear when interacting object" ANSWER! - by HumiliatioN - 12-27-2010, 03:42 PM



Users browsing this thread: 2 Guest(s)