03-13-2015, 09:47 PM
Hi. I've got a error with script to play sounds.
ExecuteString (1, 1) : No matching signatures to OnLeave()
main (8,1) Unexpected token {
It's my .hps file:
void OnStart()
{
AddEntityCollideCallback("Player", "sound01", "ScarySound1", true, 1);
}
void ScarySound1(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
{
PlaySoundAtEntity("explosion_rock_large", "explosion_rock_large.snt", "sound01", 1.0f, true);
}
What I've must do?
ExecuteString (1, 1) : No matching signatures to OnLeave()
main (8,1) Unexpected token {
It's my .hps file:
void OnStart()
{
AddEntityCollideCallback("Player", "sound01", "ScarySound1", true, 1);
}
void ScarySound1(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
{
PlaySoundAtEntity("explosion_rock_large", "explosion_rock_large.snt", "sound01", 1.0f, true);
}
What I've must do?