Frictional Games Forum (read-only)
Affecting Real-Life Sanity - 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)
+--- Thread: Affecting Real-Life Sanity (/thread-8978.html)

Pages: 1 2 3


RE: Affecting Real-Life Sanity - Kyle - 07-12-2011

(07-11-2011, 10:45 PM)Im_Sexy Wrote: Sorry to sound like a noob... but how do i do these above ^?

StartPlayerLookAt("ScriptArea_1", 2, 2, "");

You should change the parameters that say "ScriptArea_1" to the area in which you want the player to look at. Can also be used with any other active (existing) object. To stop it, use this:

StopPlayerLookAt();

This is what it says in the wiki:

Code:
void StartPlayerLookAt(string& asEntityName, float afSpeedMul, float afMaxSpeed, string& asAtTargetCallback);
void StopPlayerLookAt();


Forces the player to look at a certain entity until StopPlayerLookAt is used.

asEntityName - the entity to look at
afSpeedMul - how fast should the player look at the entity
afMaxSpeed - maximum speed allowed
asAtTargetCallback - function to call when player looks at target