04-22-2014, 09:26 PM
I have an area, which let the thouch symbol appears..
Here are the screenshots
And the script to it (script is working fine)
Here are the screenshots
And the script to it (script is working fine)
Quote://Door-SlamIs this a bug or a mistake in the settings, thanks for help
void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("AutoDoor", true, true);
StartPlayerLookAt("AutoDoor", 9, 9, "door");
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
AddTimer("", 1, "stop");
}
void stop(string &in asTimer)
{
StopPlayerLookAt();
}
void OnStart()
{
AddEntityCollideCallback("Player", "SlamArea", "func_slam", true, 1);
}