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
Messages on the screen?
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Messages on the screen?

Go to the locked door in the LevelEditor and go into its "Entity" tab. Find "PlayerInteractCallback" and fill in the entry box with "lockeddoor1". Then fill this in in the .hps anywhere but OnStart, OnEnter, or OnLeave:

void lockeddoor1(string &in asEntity)
{
SetMessage("ScreenMessages", "door1", 3);
}


Then go into the .lang and put this somewhere:

<CATEGORY Name="ScreenMessages">
<Entry Name="door1">Why is the door locked?</Entry>
</CATEGORY>
(This post was last modified: 01-08-2012, 06:03 PM by Statyk.)
01-08-2012, 06:03 PM
Find


Messages In This Thread
Messages on the screen? - by rallelol - 01-08-2012, 05:56 PM
RE: Messages on the screen? - by Statyk - 01-08-2012, 06:03 PM
RE: Messages on the screen? - by rallelol - 01-08-2012, 06:22 PM
RE: Messages on the screen? - by Statyk - 01-08-2012, 06:26 PM



Users browsing this thread: 1 Guest(s)