12-17-2011, 04:59 AM
12-17-2011, 06:02 AM
(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.
12-17-2011, 12:07 PM
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:40 PM
(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 xDfloat 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, 02:16 PM
You mean GiveSanityBoost(); ?
12-17-2011, 02:38 PM
Either GiveSanityBoost(); or
AddPlayerSanity(float afSanity);
AddPlayerSanity(float afSanity);