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
Problem with lurker Music [SOLVED]
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#1
Problem with lurker Music [SOLVED]

Well, is it possible to make so that when you get out of the water and the lurker stops chasing you, the music won't stop and revert to the original one. I tried a PlayMusic script but that makes the music first stop and then restart, and that sounds really bad.

Edit: I noticed they had in game that the music stops and reverts back to the normal one. Nvm!

Creator of The Dark Treasure.
(This post was last modified: 02-26-2011, 02:45 AM by Linus Ågren.)
02-24-2011, 02:12 PM
Website Find
Selyp Offline
Member

Posts: 210
Threads: 19
Joined: Feb 2011
Reputation: 7
#2
RE: Problem with lurker Music

(02-24-2011, 02:12 PM)junkfood2121 Wrote: Well, is it possible to make so that when you get out of the water and the lurker stops chasing you, the music won't stop and revert to the original one. I tried a PlayMusic script but that makes the music first stop and then restart, and that sounds really bad.

Maybe make a script area encompassing the whole area (water and land) and make it play that music while you are in it?

Atlantia - An Amnesia: The Dark Descent Full Conversion Mod
02-24-2011, 07:31 PM
Find
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#3
RE: Problem with lurker Music

I'm still relatively new to scripting, how do you make an area where the music only plays if ur in it?

Creator of The Dark Treasure.
02-24-2011, 08:56 PM
Website Find
Selyp Offline
Member

Posts: 210
Threads: 19
Joined: Feb 2011
Reputation: 7
#4
RE: Problem with lurker Music

(02-24-2011, 08:56 PM)junkfood2121 Wrote: I'm still relatively new to scripting, how do you make an area where the music only plays if ur in it?

Make a Script Area in the level editor, then in your .hps file you would add an EntityCollideCallback making it play the music when the player is in the area. Something like

OnEnter()
{
AddEntityCollideCallback("Player", "name_of_script_area", "name_of_function_", true, 1);
}

Then your function would be

void Name_of_Function (string &in asParent, string &in asChild, int alState)
{
PlayMusic("Name_of_music_file", true, 1, 1, 1, true);
}

That probably won't work exactly as intended, but it should give you a solid basis to work off of.

Atlantia - An Amnesia: The Dark Descent Full Conversion Mod
02-25-2011, 12:24 AM
Find
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#5
RE: Problem with lurker Music

Unfortunately, this just does as above. It resets the music, making it stop and then start again =/

Creator of The Dark Treasure.
02-25-2011, 01:32 AM
Website Find
Nye Offline
Senior Member

Posts: 250
Threads: 8
Joined: Jan 2011
Reputation: 2
#6
RE: Problem with lurker Music

(02-25-2011, 01:32 AM)junkfood2121 Wrote: Unfortunately, this just does as above. It resets the music, making it stop and then start again =/

I know it sounds harsh; but you could just have a look at what the devs did in their script file. Tongue

02-25-2011, 01:40 AM
Find
Linus Ågren Offline
Senior Member

Posts: 309
Threads: 58
Joined: Jan 2011
Reputation: 5
#7
RE: Problem with lurker Music

I have, but I don't see they do anything other than placing the lurker there. In their script I see none of the music played when being chased by lurker (att_guardian.ogg or something like that). o.O

Creator of The Dark Treasure.
02-25-2011, 01:56 AM
Website Find




Users browsing this thread: 1 Guest(s)