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 Help StartPlayerLookAt Help
.Paradox Offline
Junior Member

Posts: 2
Threads: 1
Joined: Mar 2012
Reputation: 0
#1
StartPlayerLookAt Help

Hey everyone. I've searched a bit and didn't find what I wanted, all of the StartPlayerLookAt threads didn't show this. I vaguely remember seeing something about it earlier, but I lost it >_> I basically want the player to look at a monster, but I want it to be sharp. The vision jiggles around when it looks at the entity, and then it stops. I want it to stop as soon as it looks at the entity. (note_appear_scare is the grunt)

The player can also look around, and then it goes back to the entity, jiggling again. I don't want that.

Here's my script
void OnPickup(string &in asEntity, string &in type)
{
SetEntityActive("note_appear_scare", true);
ShowEnemyPlayerPosition("note_appear_scare");
StartPlayerLookAt("note_appear_scare", 10.0f, 35.0f, "");
AddTimer("", 1.0f, "stoplookatgrunt");
}

void stoplookatgrunt(string &in asTimer)
{
StopPlayerLookAt();
}

Help please. I don't even know what to add to make it sharp.
03-26-2012, 02:07 AM
Find


Messages In This Thread
StartPlayerLookAt Help - by .Paradox - 03-26-2012, 02:07 AM
RE: StartPlayerLookAt Help - by palistov - 03-26-2012, 07:17 AM
RE: StartPlayerLookAt Help - by .Paradox - 03-26-2012, 10:04 PM
RE: StartPlayerLookAt Help - by ClayPigeon - 03-26-2012, 10:14 PM



Users browsing this thread: 1 Guest(s)