Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] StartPlayerLookAt following a grunt?
Aletho Offline
Junior Member

Posts: 14
Threads: 4
Joined: Jan 2015
Reputation: 0
#3
RE: StartPlayerLookAt following a grunt?

(02-25-2015, 08:22 PM)Mudbill Wrote: I've had the player's view follow the monster just fine. All I did was the expected StartPlayerLookAt with the monster as the target. Only thing I remember doing in addition was SetPlayerActive(false); but I don't know if that really makes the difference.

This is my code for the monster/looking script:

Spoiler below!
void MonsterBeginning(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt",true);

AddEnemyPatrolNode("grunt","beginning_node_1",0,"");
StartPlayerLookAt("grunt", 5.0f, 15.0f, "");
}


but this makes the player look at the point of origin of the monster and stays there, instead of following the monster :/
02-25-2015, 08:41 PM
Find


Messages In This Thread
RE: StartPlayerLookAt following a grunt? - by Aletho - 02-25-2015, 08:41 PM



Users browsing this thread: 1 Guest(s)