[LVL ED] Help with Sign/Examine Areas - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [LVL ED] Help with Sign/Examine Areas (/thread-13212.html) |
Help with Sign/Examine Areas - GabrielConnor - 02-10-2012 Hello there people, long time reader, first time poster in the forums So after some reading and watching of videos on youtube, I have decided to embark on my first custom story creation. And I stumbled upon a little problem that could use your assistance I have a desk with a pile of books on it. Now I want the player to get a message on his screen when he either moves the cursor over them, or interacts with them. After some digging I believe the answer to that is to create either a "sign" or an "examine" area, correct? I have made that area, and it covers the whole book pile in a nice box. But for the life of me I can't seem to find what I need to do to get the actual message displayed. * Do I need an entry in the .lang file? If yes, could someone please help me with the correct syntax for it? * Do I need some actual scripting to make the message appear? If yes could someone please direct me to the function I should be using? Any help is really appreciated I looked through the Wiki for some time now and wasn't able to locate this info, apologies if it's there and I just missed it Thanks for your time! RE: Help with Sign/Examine Areas - palistov - 02-10-2012 Yes you need an entry in the lang file. Place the Sign area, and on the 2nd properties tab set the Category and Entry names. Your lang file syntax will be like this: PHP Code: <CATEGORY Name="SignCat"> Change SignCat and SignEntry to whatever you put in the sign's appropriate field. RE: Help with Sign/Examine Areas - GabrielConnor - 02-10-2012 That worked perfectly Thank you very much Since we're on the subject could you also tell me how "examine" areas work as well? Would be really appreciated RE: Help with Sign/Examine Areas - palistov - 02-10-2012 I'm not sure, but I think that's the distance (in meters) the player must be within to see the sign text appear. RE: Help with Sign/Examine Areas - Your Computer - 02-10-2012 Examine areas require interaction by the user. Therefore SetEntityPlayerInteractCallback should be used. RE: Help with Sign/Examine Areas - GabrielConnor - 02-10-2012 Many thanks people Having so much fun with my first custom story! And it's true, the only real way to learn is to dive in and try to make one. |