The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Stop music
xtron Offline
Senior Member

Posts: 402
Threads: 37
Joined: May 2011
Reputation: 2
#1
Stop music

What's the code, when the player reaches a specific area the music stops.
I can't get the:
void StopMusic(float afFadeTime, int alPrio);
To work... :/

EDIT: This doesn't seems to work :O. any ideas?
void func_piano1_disapear(string &in asEntity, int alState)
{
StartPlayerLookAt("piano1_disapear", 10, 50, "");
AddTimer("", 0.5f, "TimerDestroyPiano1");
}

void TimerDestoryPiano1(string &in asTimer)
{
SetPropHealth("piano1_disapear", -100);
PlayMusic("05_event_steps.ogg", false, 80, 0, 10, false);
GiveSanityDamage(4.0f, true);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
AddTimer("", 1.0f, "TimerStopLook1");
}

void TimerStopLook1(string &in asTimer)
{
StopPlayerLookAt();
}

[Image: 44917299.jpg]Dubstep <3
(This post was last modified: 06-06-2011, 11:49 AM by xtron.)
06-06-2011, 11:43 AM
Find


Messages In This Thread
Stop music - by xtron - 06-06-2011, 11:43 AM
RE: Stop music - by Tanshaydar - 06-06-2011, 11:52 AM
RE: Stop music - by xtron - 06-06-2011, 11:53 AM
RE: Stop music - by Tanshaydar - 06-06-2011, 12:04 PM
RE: Stop music - by xtron - 06-06-2011, 12:06 PM
RE: Stop music - by Tanshaydar - 06-06-2011, 12:14 PM
RE: Stop music - by xtron - 06-06-2011, 12:24 PM
RE: Stop music - by Tanshaydar - 06-06-2011, 12:49 PM
RE: Stop music - by xtron - 06-06-2011, 12:53 PM
RE: Stop music - by Tanshaydar - 06-06-2011, 01:03 PM
RE: Stop music - by xtron - 06-06-2011, 01:07 PM
RE: Stop music - by Tanshaydar - 06-06-2011, 01:12 PM
RE: Stop music - by xtron - 06-06-2011, 01:16 PM
RE: Stop music - by Greven - 06-06-2011, 01:54 PM
RE: Stop music - by xtron - 06-06-2011, 02:22 PM
RE: Stop music - by Khyrpa - 06-06-2011, 02:37 PM
RE: Stop music - by xtron - 06-06-2011, 02:45 PM



Users browsing this thread: 1 Guest(s)