Frictional Games Forum (read-only)
[SCRIPT] Only show a message when interacting with a note and when interacting again show it - 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] Only show a message when interacting with a note and when interacting again show it (/thread-20296.html)



Only show a message when interacting with a note and when interacting again show it - tonitoni1998 - 02-12-2013

when the player interacts with the note only the message shows up. and only when he interacts with it again, the message will show.

how can i do that? i already tried to disable interaction but as i expected i can interact with it at all.


re: u could use a sign area - Daemian - 02-12-2013

u could use a sign area
it displays a message and by code you can add an interaction callback


RE: ... - palistov - 02-12-2013

Amn's suggestion is a good one, since you can disable and re-enable sign areas very easily.

You can also use the SetMessage, which gives can be triggered when the player clicks on the object and can have a duration to display its message for, while sign areas show their message as long as the player looks at them.

The best choice depends on what exactly is going on in your game.