[SCRIPT] Look at Script function - 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: [SCRIPT] Look at Script function (/thread-11265.html) |
Look at Script function - Gamemakingdude - 11-09-2011 Hi, i am trying to make it when you look at an script area a message appears on the screen. PHP Code: //////////////////////////// This is what i have. It doesnt show up and i know my lang file is correct. Any one know why? RE: Look at Script function - Your Computer - 11-09-2011 SetEntityPlayerLookAtCallback RE: Look at Script function - Gamemakingdude - 11-09-2011 Its doing it from the Level editor? RE: Look at Script function - Your Computer - 11-09-2011 You should practice doing it through scripts, it would be more maintainable this way. If you say that your lang file is correct, that you have a category named "Observation" and an entry named "Fire", then in your level editor are you sure you typed in "Fire" in the PlayerLookAtCallback field? Are any .map_cache files interfering? RE: Look at Script function - palistov - 11-09-2011 Use sign areas. You'll need a lang file entry. If you want it to disappear after being looked at once, add a lookat callback to the sign area. I believe they do work as script areas as well. You know the drill. If state == 1 set the area inactive or turn on a timer to set the area inactive. Be creative Enjoy! |