Frictional Games Forum (read-only)
[SCRIPT] AddEntityCollideCallback help - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] AddEntityCollideCallback help (/thread-56810.html)



AddEntityCollideCallback help - MmXavp - 10-11-2020

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);
}