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

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

Hello, again!

It seems each time I do a new thing when it comes to scripting I have at least one problem. I'm a little new but I understand it. But I don't understand why my player won't look at the entity which is a bed!


HPS FILE:
(All other scripting has been removed)

HPS Script

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Dothing", true, 1);
}




void OnEnter()
{




}




void OnLeave()





}
void Dothing(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
StartPlayerLookAt("oxfordsbed", 1.0f, 1.0f, "");
SetMessage("Messages", "GetSomeSleep",3);
AddTimer("", 4, "Doelse");
}
void Doelse (string &in asTimer)
{
StopPlayerLookAt();
SetPlayerActive(true);
}
(This post was last modified: 05-04-2013, 01:23 PM by FurtherGames.)
05-04-2013, 01:04 PM
Find


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



Users browsing this thread: 5 Guest(s)