Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make blue light flash when unlocking door?
FreshKorruption Offline
Member

Posts: 94
Threads: 27
Joined: Oct 2011
Reputation: 1
#1
Make blue light flash when unlocking door?

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.

Custom Stories

-BrastaSauce

12-17-2011, 04:59 AM
Website Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Make blue light flash when unlocking door?

(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.

(This post was last modified: 12-17-2011, 06:02 AM by flamez3.)
12-17-2011, 06:02 AM
Find
EmmetVG Offline
Junior Member

Posts: 47
Threads: 7
Joined: Nov 2011
Reputation: 2
#3
RE: Make blue light flash when unlocking door?

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
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#4
RE: Make blue light flash when unlocking door?

(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

12-17-2011, 12:40 PM
Find
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#5
RE: Make blue light flash when unlocking door?

You mean GiveSanityBoost(); ?

Creator of The Dark Treasure.
12-17-2011, 02:16 PM
Website Find
EmmetVG Offline
Junior Member

Posts: 47
Threads: 7
Joined: Nov 2011
Reputation: 2
#6
RE: Make blue light flash when unlocking door?

Either GiveSanityBoost(); or
AddPlayerSanity(float afSanity);

12-17-2011, 02:38 PM
Find




Users browsing this thread: 2 Guest(s)