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