Is this possible? - 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: Is this possible? (/thread-15640.html) |
Is this possible? - P44RTHURN4X - 05-26-2012 Hey guys, I wanna ask you all, is it possible, that when I add a timer with the "if-function", that I... No wait, I want to make it like this: AddTimer("game_timer", 1.0f, "la_mes"); ... void la_mes(string &in asTimer) { if(alState == 1) [When player look on the item, a message come on the screen] { SetMessage("Messages", "la_message", 8); } } .lang <CATEGORY Name="Messages"> <Entry Name="la_message">...message...</Entry> </CATEGORY> Is this so right or how have I have to do it that it works like I want? PS: Sry, I'm german, not pretty good in english GReeZe' P44 RE: Is this possible? - Putmalk - 05-26-2012 The script is incomplete and the snippet you provided us would error anyway. What are you trying to do? RE: Is this possible? - Cranky Old Man - 05-27-2012 If it's possible for a message to come up if the player looks at something? Frictional Games did it with signs. Look at how they did it in the Archives map. RE: Is this possible? - Damascus - 05-27-2012 Sign Areas work just like that. You place the area where you want the message to appear and point it toward an entry in your lang file. They only work from a certain distance though. RE: Is this possible? - Cranky Old Man - 05-27-2012 If you want an infinite distance, see if the SetEntityPlayerLookAtCallback() function works. RE: Is this possible? - Twitchez - 05-27-2012 (05-27-2012, 06:22 AM)Cranky Old Man Wrote: If you want an infinite distance, see if the SetEntityPlayerLookAtCallback() function works.This is also useful if you want the message to appear only once RE: Is this possible? - FlawlessHappiness - 05-27-2012 Otherwise i recommend using area_sign |