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
How to remove playerlookatcallback.
Red Offline
Posting Freak

Posts: 1,757
Threads: 49
Joined: Feb 2012
Reputation: 54
#1
How to remove playerlookatcallback.


I know it can be autoremoved via level editor by checking the PlayerLookAtAutoRemove or autoremove it by
scripts but i would like to know how to do this manually. I have tried RemoveEntityLookAtCallback etc. but
it doesn't even work.
(This post was last modified: 11-04-2012, 11:56 AM by Red.)
11-04-2012, 10:52 AM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: How to remove playerlookatcallback.

////List of scripts (watch out, the StartLook is in here) there's a timer that will call whateva'


void whateva' (string &in asTimer)
{
StopPlayerLookAt();
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-04-2012, 11:28 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#3
RE: How to remove playerlookatcallback.

I would say do the look at callback and add variables:

void LookAtCallback();
{
if(GetLocalVarInt("StopLook") == 0)
{

}
}

Then just use SetLocalVarInt("StopLook", 1); When you want it to stop

Trying is the first step to success.
11-04-2012, 11:41 AM
Find
Red Offline
Posting Freak

Posts: 1,757
Threads: 49
Joined: Feb 2012
Reputation: 54
#4
RE: How to remove playerlookatcallback.

(11-04-2012, 11:28 AM)The chaser Wrote: ////List of scripts (watch out, the StartLook is in here) there's a timer that will call whateva'


void whateva' (string &in asTimer)
{
StopPlayerLookAt();
}
That stops the player from looking.

(11-04-2012, 11:41 AM)beecake Wrote: I would say do the look at callback and add variables:

void LookAtCallback();
{
if(GetLocalVarInt("StopLook") == 0)
{

}
}

Then just use SetLocalVarInt("StopLook", 1); When you want it to stop
Yep, that did it, thanks mate.
(This post was last modified: 11-04-2012, 11:55 AM by Red.)
11-04-2012, 11:50 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#5
RE: How to remove playerlookatcallback.

SetEntityPlayerLookAtCallback("entity_name", "", true);

Tutorials: From Noob to Pro
11-04-2012, 01:23 PM
Website Find




Users browsing this thread: 1 Guest(s)