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 a message appear by clicking on something?
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: How to make a message appear by clicking on something?

Without being mean mate, I think you should overlook the Engine Scripts page a little bit more. While we are here to help, we cannot always just give you code. Look through Amnesia, other people's Custom Stories, the wiki tutorials and previous forum posts. You have to learn what to do as well, not just rely on everybody else.

Regardless:
PHP Code: (Select All)
void OnStart()
{
SetEntityPlayerInteractCallback("""interacted"false);
}

void interacted("name_of_entity_in_Level_Editor")
{
SetMessage(stringasTextCategorystringasTextEntry0.0f);

(I think that works. Haven't tested it, but followed correct terms in setting it up)

You need to supply the TextCategory and TextEntry, according to your lang file, and change the name_of_entity_in_Level_Editor to the name of what you're interacting with.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 02-03-2014, 03:11 PM by Romulator.)
02-03-2014, 03:10 PM
Find


Messages In This Thread
RE: How to make a message appear by clicking on something? - by Romulator - 02-03-2014, 03:10 PM



Users browsing this thread: 1 Guest(s)