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
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#4
RE: Help with looking at area

(05-26-2013, 01:58 AM)Wank Wrote:
(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...

You want a text to appear when the Player is looking at the area, right? The Message Category is the category of the message you want and Message Entry is the entry of the message in the same category earlier.

"Veni, vidi, vici."
"I came, I saw, I conquered."
05-26-2013, 02:06 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 PutraenusAlivius - 05-26-2013, 02:06 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)