Need help with making examine area unactive! - 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: Need help with making examine area unactive! (/thread-20956.html) |
Need help with making examine area unactive! - Zaapeer - 03-28-2013 Hello! I'm working on a custom story where I want a examine area to disappear (become unactive) when the player has touched it once. I use SetEntityCallbackFunc, but the examine area is still there after I've touched it.. Do areas even count as enteties? Here's my script: void OnStart() { SetEntityCallbackFunc("ExamineArea_2", "TextGone1"); } void TextGone1(string &in asEntity, string &in type) { SetEntityActive("ExamineArea_2", false); } Please help! RE: Need help with making examine area unactive! - FlawlessHappiness - 03-28-2013 I don't think you can create a callback from an examine-area... If you just want text to show up when you click it, why not just use a regular area? You can use the SetMessage("Category", "Entry", 0); It'll work fine. RE: Need help with making examine area unactive! - NaxEla - 03-28-2013 Use SetEntityPlayerInteractCallback. PHP Code: void OnStart() |