04-01-2011, 04:47 AM
void OnStart()
{
AddEntityCollideCallback("Player" , "room_1" , "Collidedoor_1" , true , 0);
}
void Collidedoor_1(string &in asParent , string &in asChild , int alState)
{
SetSwingDoorLocked("door_1", true, true);
PlaySoundAtEntity("", "react_breath1", "Player", 0.0f, false);
}
it wont play the sound when the door slams shut.Whats wrong with it?
{
AddEntityCollideCallback("Player" , "room_1" , "Collidedoor_1" , true , 0);
}
void Collidedoor_1(string &in asParent , string &in asChild , int alState)
{
SetSwingDoorLocked("door_1", true, true);
PlaySoundAtEntity("", "react_breath1", "Player", 0.0f, false);
}
it wont play the sound when the door slams shut.Whats wrong with it?