Frictional Games Forum (read-only)

Full Version: AddEntityCollideCallback help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm having some issues here. I trying to set up a script area so when the player walks into it, a sound plays to scare the player. 

this is the script segments to it.

If I've buggered something up, I'd appreciate the help to fix it as I'm still trying to get to grips with this stuff.

AddEntityCollideCallback("Player", "BangDoor", "BangDoorScare", true);

void BangDoorScare ()
{
   PlaySoundAtEntity("", "scare_slam_door.snt", "pitdoor", 0, false);
}