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
Music problem...
LocalParty Offline
Junior Member

Posts: 34
Threads: 10
Joined: Jan 2012
Reputation: 0
#1
Music problem...

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? Smile
01-17-2012, 07:23 PM
Find
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#2
RE: Music problem...

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.

Insanity. Static.
01-17-2012, 08:25 PM
Find
LocalParty Offline
Junior Member

Posts: 34
Threads: 10
Joined: Jan 2012
Reputation: 0
#3
RE: Music problem...

Gonna try! Tnx!!! Big Grin + rep to you! Smile)
01-17-2012, 08:28 PM
Find
ZyLogicX Offline
Member

Posts: 245
Threads: 24
Joined: May 2011
Reputation: 6
#4
RE: Music problem...

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

Beyond the Mountains of Madness [15%]
This forum is dying.
01-17-2012, 08:50 PM
Find
LocalParty Offline
Junior Member

Posts: 34
Threads: 10
Joined: Jan 2012
Reputation: 0
#5
RE: Music problem...

(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... Tongue
Its not reeeealy solved... I need the monster music to stop for just this one! xD
01-17-2012, 09:20 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#6
RE: Music problem...

(01-17-2012, 09:20 PM)LocalParty Wrote:
(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... Tongue
Its not reeeealy solved... I need the monster music to stop for just this one! xD
When do you want the music to stop?

When the monster hits the door or later on? Smile

either way you use the StopMusic(); script

(This post was last modified: 01-17-2012, 09:49 PM by SilentStriker.)
01-17-2012, 09:48 PM
Find
LocalParty Offline
Junior Member

Posts: 34
Threads: 10
Joined: Jan 2012
Reputation: 0
#7
RE: Music problem...

(01-17-2012, 09:48 PM)SilentStriker Wrote:
(01-17-2012, 09:20 PM)LocalParty Wrote:
(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... Tongue
Its not reeeealy solved... I need the monster music to stop for just this one! xD
When do you want the music to stop?

When the monster hits the door or later on? Smile

either way you use the StopMusic(); script
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... Sad
01-17-2012, 10:00 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#8
RE: Music problem...

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?
(This post was last modified: 01-17-2012, 10:03 PM by Statyk.)
01-17-2012, 10:03 PM
Find




Users browsing this thread: 1 Guest(s)