Hi all,
I'm kinda stuck at a part of scripting.. again >.<
I've made another thread but I don't think that one is needed anymore..
So the problem is.. I want the player to look at 3 entities when you enter an area. When it enters the area though, it only looks at one entity (first one in script) and keeps staring at it.. Does anybody see the problem?
And is my script even right? In theory it should work (I think).
Here's my script part:
void LookAt(string &in asTimer)
{
AddTimer("LookAt1", 2, "Sanity");
}
void Sanity(string &in asTimer)
{
if (LookAt1 == 2);
{
StartPlayerLookAt("corpse_male_torso_1", 100, 100, ""};
}
if (LookAt1 == 6);
{
StartPlayerLookAt("chest_of_drawers_nice_broken_1", 100, 100, "");
}
if (LookAt1 == 4);
{
StartPlayerLookAt("painting03_1", 100, 100, "");
}
if (LookAt1 == 0);
{
SetPlayerSanity(0);
}
}
THANKS