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
Help for my custom story
narutohokager Offline
Member

Posts: 149
Threads: 28
Joined: Jan 2011
Reputation: 0
#1
Help for my custom story

Hi People Big Grin

I need help to do my custom story, When the map started, i want have a sound, and after that, another sound. Is it possible?

(I want to make a sound that says that someone locked the door)

And I will also be a time when the player looks at a door stop after watching, and the door closes violently.

Can anyone help me?

Thank.

(Sorry for my bad english)

Sorry for my bad english
Amnesia The Revenge - Chapter 1
07-07-2011, 01:23 AM
Website Find
Paulpolska Offline
Member

Posts: 144
Threads: 29
Joined: Jun 2011
Reputation: 0
#2
RE: Help for my custom story

void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

Plays music.

asMusicFile - the music to play + extension .ogg
abLoop - determines whether a music track should loop
afVolume - volume of the music
afFadeTime - time in seconds until music reaches full volume
alPrio - priority of the music. Note that only the music with the highest priority can be heard! 0 - highest, 1 - lower, etc

After the player is in area (for example of course) you set music. That's all

MY CUSTOM STORY - - STILL ALIVE - -
http://www.moddb.com/mods/still-alive
07-07-2011, 12:06 PM
Find
narutohokager Offline
Member

Posts: 149
Threads: 28
Joined: Jan 2011
Reputation: 0
#3
RE: Help for my custom story

Music? No, I want her playing a 2 sounds one after the other.
But I do not know if such a code is able to walk.

void PlaySoundAtEnter
{

PlaySoundAtEntity();
PlaySoundAtEntity();

}


Sorry for my bad english
Amnesia The Revenge - Chapter 1
07-07-2011, 02:39 PM
Website Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#4
RE: Help for my custom story

void OnStart()
{
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound); //first sound
AddTimer("blehblöh", 2.0f, "StartSecondSound");
}

void StartSecondSound(string &in asTimer)
{
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound); //second sound
}

when game starts, that first sound comes out and then 2 seconds after the next
07-07-2011, 02:59 PM
Find
narutohokager Offline
Member

Posts: 149
Threads: 28
Joined: Jan 2011
Reputation: 0
#5
RE: Help for my custom story

Hey Thank its working Big Grin

Now I want to do at the beginning of the map there is a black screen and it disappears slowly.

Its possible ?

Thank Tongue

EDIT: I also want the command to close a door violently, Thank.

Sorry for my bad english
Amnesia The Revenge - Chapter 1
(This post was last modified: 07-07-2011, 10:30 PM by narutohokager.)
07-07-2011, 09:46 PM
Website Find
narutohokager Offline
Member

Posts: 149
Threads: 28
Joined: Jan 2011
Reputation: 0
#6
RE: Help for my custom story

Anyone can help me ? Rolleyes

Sorry for my bad english
Amnesia The Revenge - Chapter 1
07-09-2011, 06:22 PM
Website Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#7
RE: Help for my custom story

Well look, we're not hear to full you on every single one of your needs. You might as well learn the proper way.

Here you go. You better thank me, you should bookmark this:

http://wiki.frictionalgames.com/hpl2/amn..._functions

FadeOut(0);
FadeIn(5);

That's all I'll give you. -_-

(This post was last modified: 07-09-2011, 06:36 PM by Kyle.)
07-09-2011, 06:36 PM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#8
RE: Help for my custom story

These into onstart:
FadeOut(0);
FadeIn(5.0f);

5 second fade in

to close a door:
SetSwingDoorClosed("yourdoorsname", true, false);
07-09-2011, 06:37 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#9
RE: Help for my custom story

(07-09-2011, 06:37 PM)Khyrpa Wrote: These into onstart:
FadeOut(0);
FadeIn(5.0f);

5 second fade in

to close a door:
SetSwingDoorClosed("yourdoorsname", true, false);

I don't think the SetSwingDoorClosed will work.

You need to have a prop force/impulse for it to work.

07-09-2011, 06:41 PM
Find
narutohokager Offline
Member

Posts: 149
Threads: 28
Joined: Jan 2011
Reputation: 0
#10
RE: Help for my custom story

Thank you for your help Big Grin

I will try it.

Sorry for my bad english
Amnesia The Revenge - Chapter 1
07-10-2011, 11:39 AM
Website Find




Users browsing this thread: 2 Guest(s)