Frictional Games Forum (read-only)

Full Version: Make blue light flash when unlocking door?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
(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.
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.
(12-17-2011, 12:07 PM)EmmetVG Wrote: [ -> ]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.
I actually think thats it. I couldn't think of the right one xD
You mean GiveSanityBoost(); ?
Either GiveSanityBoost(); or
AddPlayerSanity(float afSanity);