The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Force Player lookat coding help
Cyphermur9t Offline
Junior Member

Posts: 38
Threads: 17
Joined: Jan 2013
Reputation: 2
#1
Force Player lookat coding help

What am I doing wrong here? I've tried multiple types of coding and nothing seems to be working and is getting frustrating! All I want is for the player to be forced to look at something, then the player can again stop being forced to look and continue doing what they want. I have the looking at part working, however they never stop looking. If I move the mouse away, it'll just go right back to where he was looking at and it will not stop.


void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "ScriptArea_1", true, 1);
AddTimer("", 3, "stoplook");
}

//////////////////////////////////////////

void ScriptArea_1(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("Look1", 5.0f, 5.0f, "");
}

void stoplook(string &in asTimer)
{
StopPlayerLookAt();
}
(This post was last modified: 01-24-2013, 11:41 AM by Cyphermur9t.)
01-24-2013, 11:40 AM
Find


Messages In This Thread
Force Player lookat coding help - by Cyphermur9t - 01-24-2013, 11:40 AM



Users browsing this thread: 3 Guest(s)