![]() |
[SCRIPT] Text on screen when looking at a certain model - 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] Text on screen when looking at a certain model (/thread-29899.html) |
Text on screen when looking at a certain model - goodcap - 05-05-2015 I was wondering how I make it that when the player clicks/interacts on/with a pile of barrels a message appears that says: ''This barrel is brown" or whatever. Or a cardreader that says: "This cardreader looks old and useless" when you click on it Thanks RE: Text on screen when looking at a certain model - Amnesiaplayer - 05-05-2015 I'm not sure, but I think I know how to do this. Click on the Object you want, and then go to "entity" tab. Then Write something like, "Message1" in the PlayerInteractCallback. Then do it like this in your script : PHP Code: void Message1(string &in asEntity) EDIT: the 1 at the end of setmessage means how long the text will stay. (also, don't forgot to use your lang file) Hope this helped. Tell me if it worked ![]() RE: Text on screen when looking at a certain model - goodcap - 05-05-2015 (05-05-2015, 07:04 PM)Amnesiaplayer Wrote: I'm not sure, but I think I know how to do this. it worked. Thanks bud ![]() RE: Text on screen when looking at a certain model - Amnesiaplayer - 05-05-2015 No problem ![]() |