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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Show messages / text when looking at an area? (Kind of solved)
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#2
RE: Show messages / text when looking at an area?

I use a different method altogether. Example script:

void OnStart()
{
SetEntityPlayerLookAtCallback("ScriptArea_1", "LookAtMessage", true); //When player looks at ScriptArea_1, call "LookAtMessage".
}

void LookAtMessage(string &in entity, int alState)
{
SetMessage("TextCat", "TextEnty", 3.0f); //Displays message from category "TextCat", entry "TextEnty", for three seconds.
}
05-09-2011, 12:39 PM
Find


Messages In This Thread
RE: Show messages / text when looking at an area? - by Roenlond - 05-09-2011, 12:39 PM



Users browsing this thread: 1 Guest(s)