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
Player Won't Look At Entity?
FurtherGames Offline
Member

Posts: 72
Threads: 23
Joined: Apr 2013
Reputation: 1
#3
RE: Player Won't Look At Entity?

(05-04-2013, 01:08 PM)JustAnotherPlayer Wrote:
PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player""ScriptArea_1""PlrLookAt"true1);
}




void OnEnter()
{

}

void OnLeave()
{
 
}
void PlrLookAt(string &in asParentstring &in asChildint alState)
{
SetPlayerActive(false);
StartPlayerLookAt("oxfordsbed"1.0f1.0f"");
SetMessage("Messages""GetSomeSleep"3);
AddTimer(""4"PlrStahpLookAt");
}
void PlrStahpLookAt(string &in asTimer)
{
 
StopPlayerLookAt();
 
SetPlayerActive(true);


Fixed. Hopefully.

It's not. All that happens is the player becomes inactive, the message appears and then the player is active again once the countdown finishes.
05-04-2013, 01:10 PM
Find


Messages In This Thread
Player Won't Look At Entity? - by FurtherGames - 05-04-2013, 01:04 PM
RE: Player Won't Look At Entity? - by FurtherGames - 05-04-2013, 01:10 PM



Users browsing this thread: 2 Guest(s)