![]() |
Bizarre Music Error - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Bizarre Music Error (/thread-20148.html) Pages:
1
2
|
Bizarre Music Error - AGP - 02-03-2013 This feels silly, because I'd gotten down how to add scripted music and all of a sudden this strange thing happens! The music is not playing at all and where the script area is for the music to start, a hand appears. 0.0 Maybe I'm just looking to hard to find what's wrong and need a second pair of eyes. I've been fighting this problem for a while now. hps file: Code: void OnStart () snt file: (named hallking.snt) Code: <SOUNDENTITY> In the level editor, the script area is named hallking_area and it's callback listed as HallKing under the area tab. RE: Bizarre Music Error - PutraenusAlivius - 02-03-2013 It should of been: Code: void OnStart () RE: Bizarre Music Error - AGP - 02-03-2013 (02-03-2013, 02:31 AM)JustAnotherPlayer Wrote: It should of been: Changing the order doesn't really do much. On another map I made, the void func is listed after the OnEnter and OnLeave and those work fine. RE: Bizarre Music Error - PutraenusAlivius - 02-03-2013 (Just Realized it...) You wanted to play music, right? It's supposed to be PHP Code: PlayMusic() PHP Code: PlaySoundAtEntity RE: Bizarre Music Error - AGP - 02-03-2013 (02-03-2013, 02:38 AM)JustAnotherPlayer Wrote: (Just Realized it...) You wanted to play music, right? It's supposed to be That's for just playing it in the background, right? I've used PlaySoundAtEntity for when the player reaches a certain area so it activates the sound at a specific moment, which is the goal. RE: Bizarre Music Error - PutraenusAlivius - 02-03-2013 in the Script Area properties, you put HallKing in its callback? That's odd. If i were you, i never put anything in the callback part on Script Area properties. RE: Bizarre Music Error - NaxEla - 02-03-2013 You can make it so that when the player walks into a certain area, the music plays in the background. PHP Code: void OnStart() EDIT: The reason the hand shows up is because you probably have some text where it says PlayerInteractCallback in the area properties. RE: Bizarre Music Error - PutraenusAlivius - 02-03-2013 (02-03-2013, 02:54 AM)NaxEla Wrote: You can make it so that when the player walks into a certain area, the music plays in the background.Your answer is mine 1 post ago! RE: Bizarre Music Error - AGP - 02-03-2013 (02-03-2013, 02:54 AM)NaxEla Wrote: You can make it so that when the player walks into a certain area, the music plays in the background. Tried it and still nothing plays. The hand is gone after deleting the callback function from the properties tab. This is really stumping! I've used the PlaySoundAtEntity before in other scripts and they work, but for some reason this one is just not having it. RE: Bizarre Music Error - PutraenusAlivius - 02-03-2013 I think i found the problem. It should have been: PHP Code: PlaySoundAtEntity("Player", "hallking.snt", "hallking_area", 0.5, false); NOT PHP Code: PlaySoundAtEntity("HallKing", "hallking.snt", "hallking_area", 0.5, false); |