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
#5
RE: StartPlayerLookAt following a grunt?

(02-25-2015, 08:58 PM)Neelke Wrote: Then what you can do is update the StartPlayerLookAt with a timer. The camera should then adjust perfectly by itself with this.

void TimerGruntUpdate(string &in asTimer)
{
StartPlayerLookAt("grunt", 3.0f, 3.0f, "");
AddTimer("grunt", 0.01f, "TimerGruntUpdate");
}

That worked really well, now the camera follows the grunt perfectly. There's just one problem, now that script will go on forever meaning a simple "StopPlayerLookingAt" line won't stop it from looking at the point where the grunt got deactivated, since it updates itself every 1/10 of a second :/
02-25-2015, 10:54 PM
Find


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



Users browsing this thread: 1 Guest(s)