Hey, maybe anyone can me help.
I want to let the player stop looking at the door.
//Door-Slam
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()
{
StopPlayerLookAt();
}
If i write the StopPlayerLookAt(); in the func_slam, it wont even look at the door.
I think its quite simple, but i dont get it :/