![]() |
Make blue light flash when unlocking door? - 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: Make blue light flash when unlocking door? (/thread-11897.html) |
Make blue light flash when unlocking door? - FreshKorruption - 12-17-2011 What do I script to make a blue light flash and that sound play when i unlock a door. You know, like they do in the story. RE: Make blue light flash when unlocking door? - flamez3 - 12-17-2011 (12-17-2011, 04:59 AM)FreshKorruption Wrote: What do I script to make a blue light flash and that sound play when i unlock a door. You know, like they do in the story.I'm not exactly sure but I think it's this: CompleteQuest(string& asName, string& asNameAndTextEntry); Completes a quest. asName - the internal name of the quest asNameAndTextEntry - entry in the .lang file. Must start with “Questfckg_QUOT_, end with _fckg_QUOTText”, and be in category “Journal”! And I think there needs to be a PlaySoundAtEntity function but I don't know the sound that needs to be played. RE: Make blue light flash when unlocking door? - EmmetVG - 12-17-2011 Its not CompleteQuest. I think its: void AddPlayerSanity(float afSanity); float afSanity = The amount the player will boost. Because when you set the GiveSanityDamage(float afAmount, bool abUseEffect); The effects and sound plays automaticly.
RE: Make blue light flash when unlocking door? - flamez3 - 12-17-2011 (12-17-2011, 12:07 PM)EmmetVG Wrote: Its not CompleteQuest. I think its: void AddPlayerSanity(float afSanity);I actually think thats it. I couldn't think of the right one xD RE: Make blue light flash when unlocking door? - Linus Ågren - 12-17-2011 You mean GiveSanityBoost(); ? RE: Make blue light flash when unlocking door? - EmmetVG - 12-17-2011 Either GiveSanityBoost(); or AddPlayerSanity(float afSanity); |