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:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Play Sound on area
gericecold Offline
Junior Member

Posts: 8
Threads: 4
Joined: Nov 2010
Reputation: 0
#1
Play Sound on area

Hello, i have made a script, for playing a sound at a piano, when i walk into an area.
But when i try it the game crashes..

what have i done wrong?
heres the script :

// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "bitch", true, 1);
}


void bitch(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
{
PlaySoundAtEntity("knuppel", "general_piano03.snt", "piano_1", 2.0f, false);
StopSound("knubbel", 5.0f);
}

i hope for help Huh
12-12-2010, 12:21 PM
Find


Messages In This Thread
Play Sound on area - by gericecold - 12-12-2010, 12:21 PM
RE: Play Sound on area - by Gamemakingdude - 12-12-2010, 12:22 PM
RE: Play Sound on area - by jens - 12-12-2010, 12:28 PM
RE: Play Sound on area - by gericecold - 12-12-2010, 12:36 PM
RE: Play Sound on area - by Frontcannon - 12-12-2010, 01:50 PM



Users browsing this thread: 1 Guest(s)