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
[Script] StartplayerLookAt won´t work
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#1
[Script] StartplayerLookAt won´t work

Here is my script:

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_17", "script1", true, 1);
}

void script1(string &in asParent, string &in asChild, int alState)

{
SetPlayerActive(false);
StartPlayerLookAt("bust_1", 6.0, 6.0, "");
AddTimer("", 10.0f, "Timer_21");
}

void Timer_21(string&in asTimer)
{
StopPlayerLookAt();
SetPlayerActive(true);}
I don`t know why StartplayerlookAt doesn´t work. SetPlayerActive works.
(This post was last modified: 07-10-2012, 09:24 PM by ooadrianoo.)
07-10-2012, 09:22 PM
Find


Messages In This Thread
[Script] StartplayerLookAt won´t work - by ooadrianoo - 07-10-2012, 09:22 PM



Users browsing this thread: 2 Guest(s)