Frictional Games Forum (read-only)
How to remove playerlookatcallback. - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How to remove playerlookatcallback. (/thread-19075.html)



How to remove playerlookatcallback. - Red - 11-04-2012


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.



RE: How to remove playerlookatcallback. - The chaser - 11-04-2012

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


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


RE: How to remove playerlookatcallback. - FlawlessHappiness - 11-04-2012

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


RE: How to remove playerlookatcallback. - Red - 11-04-2012

(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.


RE: How to remove playerlookatcallback. - Your Computer - 11-04-2012

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