Lid scripting - 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: Lid scripting (/thread-18903.html) |
Lid scripting - Balpert Spijsbat - 10-23-2012 Hello, i'm scripting a custom story. And I would like to activate something (a skull) when the player lights a bonfire, how should I do that? RE: Lid scripting - ZodiaC - 10-23-2012 (10-23-2012, 08:15 PM)Balpert Spijsbat Wrote: Hello, i'm scripting a custom story.void OnStart() { SetEntityCallbackFunc("bonfire_1","bonfire"); } void bonfire(string &in asEntity, string &in type) { SetEntityActive("skull", true); } That's for the scripting part RE: Lid scripting - Balpert Spijsbat - 10-25-2012 Thank you very much! RE: Lid scripting - ZodiaC - 10-25-2012 (10-25-2012, 05:39 PM)Balpert Spijsbat Wrote: Thank you very much!No problem pal! |