Hello Forum People!
I'm quite new to scripting and don't understand 100% of Frictional Games's Scripting Tutorial.
What I have is a grunt spawning and I would like to have a script that forces the player to look at the grunt for a certain amount of time.
I read another thread where I found:
StartPlayerLookAt("Name?", 5.0f, 5.0f, "");
But I don't understand what it means, are "5.0f" coordinates? and the "Name?" is that the name of a Script Area Entity or an Object/Enemy Entity?
The place it would be is in this:
void LookAtGrunt(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("ghostgrunt", true);
ShowEnemyPlayerPosition("ghostgrunt");
AddTimer("", 2, "TimerGruntEnd");
(>- Here -<)
}
Don't worry about the "LookAtGrunt" name in top, already got figured out how to activate that script.
So how would I get the player to look at the place the grunt is standing/spawns/area, we.
Also, I'm Norwegian so please excuse me if there are any typos.
Thanks for reading!
Hope you have a solution! ^-^
Rokotain