Music problem... - 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: Music problem... (/thread-12676.html) |
Music problem... - LocalParty - 01-17-2012 Okey... So when i enter an area i want music to start playing the player to look back and then after like 6 - 10 secound (dont know when the drop in the song are) then i want the player to see a monster punching the closed door and music still playing and full controll over player... Can somebody give me a script example? RE: Music problem... - Juby - 01-17-2012 An example? Sure. void OnStart() { AddEntityCollideCallback("Player", "CollisionArea", "MusicPunch", true, 1); } void MusicPunch(string &in asParent, string &in asChild, int alState) { PlayMusic("MUSIC.ogg", false, .8f, 2, 2, false); AddTimer("", 6, "PunchyLook"); StartPlayerLookAt("AREATOLOOKAT", 1, 1, ""); } void PunchyLook(string &in asTimer) { //Add Patrol Nodes For Baddie Here SetEntityActive("MONSTERMAN", true); StopPlayerLookAt(); } Note- didn't test this yet so they may or may not be typos. RE: Music problem... - LocalParty - 01-17-2012 Gonna try! Tnx!!! + rep to you! ) RE: Music problem... - ZyLogicX - 01-17-2012 Please change this forum to solved... so that people that wanted to help you in the first place dont have to waste there time... like I just did... RE: Music problem... - LocalParty - 01-17-2012 (01-17-2012, 08:50 PM)ZyLogicX Wrote: Please change this forum to solved... so that people that wanted to help you in the first place dont have to waste there time... like I just did...Its not reeeealy solved... I need the monster music to stop for just this one! xD RE: Music problem... - SilentStriker - 01-17-2012 (01-17-2012, 09:20 PM)LocalParty Wrote:When do you want the music to stop?(01-17-2012, 08:50 PM)ZyLogicX Wrote: Please change this forum to solved... so that people that wanted to help you in the first place dont have to waste there time... like I just did...Its not reeeealy solved... I need the monster music to stop for just this one! xD When the monster hits the door or later on? either way you use the StopMusic(); script RE: Music problem... - LocalParty - 01-17-2012 (01-17-2012, 09:48 PM)SilentStriker Wrote:I want my music that i play! (Dubstep) To be heard and not the monster music... Becouse now i only here the monster music... Just a short clip of the dubstep...(01-17-2012, 09:20 PM)LocalParty Wrote:When do you want the music to stop?(01-17-2012, 08:50 PM)ZyLogicX Wrote: Please change this forum to solved... so that people that wanted to help you in the first place dont have to waste there time... like I just did...Its not reeeealy solved... I need the monster music to stop for just this one! xD RE: Music problem... - Statyk - 01-17-2012 It is the loud "REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE" noise when he is going after the player that you want to stop ? Or is the monster music still playing? |