(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:
void OnStart()
{
SetEntityPlayerInteractCallback("", "interacted", false);
}
void interacted("name_of_entity_in_Level_Editor")
{
SetMessage(string& asTextCategory, string& asTextEntry, 0.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.