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
LookAt / NotLookAt
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#1
LookAt / NotLookAt

I am trying to make a script that will make an entity disappear upon looking away from it, but only after looking at it to begin with. I have 2 SetEntityPlayerLookAtCallback functions, however I am unsure how to specify the state of the callback (i.e. 1 for looking at and -1 for not looking at).

I tried an if statement, but I either did it completely wrong or it just doesn't work that way. Does anyone know how to specify the state?

Thanks in advance.

03-31-2011, 11:32 PM
Find


Messages In This Thread
LookAt / NotLookAt - by Anxt - 03-31-2011, 11:32 PM
RE: LookAt / NotLookAt - by Pandemoneus - 04-01-2011, 12:12 AM
RE: LookAt / NotLookAt - by Anxt - 04-01-2011, 12:22 AM
RE: LookAt / NotLookAt - by palistov - 04-01-2011, 11:24 PM
RE: LookAt / NotLookAt - by Pandemoneus - 04-02-2011, 12:01 AM
RE: LookAt / NotLookAt - by palistov - 04-02-2011, 03:13 AM
RE: LookAt / NotLookAt - by Anxt - 04-02-2011, 03:24 AM
RE: LookAt / NotLookAt - by palistov - 04-03-2011, 06:26 AM



Users browsing this thread: 2 Guest(s)