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
Help with looking at area
Wank Offline
Junior Member

Posts: 28
Threads: 11
Joined: May 2013
Reputation: 0
#3
RE: Help with looking at area

(05-26-2013, 01:53 AM)JustAnotherPlayer Wrote: This is the "voluntary" code. This means that the Player isn't being forced to look at this.
void OnStart()
{
SetEntityPlayerLookAtCallback("Look", "MessageAppear", true); //Change true to false if you want the message to appear over and over again.
}

void MessageAppear(string &in asEntity, int alState)
{
SetMessage("MessageCategory", "MessageEntry", 0); //Change 0 to how long you want the message to appear. 0 means it will count how many strings it have and calculate the time.
}

What do I do for "Message Category" and "Message Entry"? This is a script area so...
05-26-2013, 01:58 AM
Find


Messages In This Thread
Help with looking at area - by Wank - 05-26-2013, 01:38 AM
RE: Help with looking at area - by Wank - 05-26-2013, 01:58 AM
RE: Help with looking at area - by Wank - 05-26-2013, 02:08 AM
RE: Help with looking at area - by Romulator - 05-26-2013, 08:56 AM



Users browsing this thread: 1 Guest(s)