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?
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#12
RE: How to make a message appear by clicking on something?

(02-03-2014, 03:10 PM)Romulator Wrote: 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.

The engine script doesn't provide you with simple "how do you do this" or even simple tasks like "adding messages to whatever". It gives you a line of code to maybe display a message, or how to add to message, but doesn't actually show you how it's done. If people have problems with answering a question about "how do you do this" on a forum, well don't answer them or lecture them. I'm not saying you did lecture him, just pointing it out a lot of people dislike the engine script.
02-03-2014, 08:56 PM
Find


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



Users browsing this thread: 1 Guest(s)