Frictional Games Forum (read-only)
Scripting Problems ! - 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: Scripting Problems ! (/thread-10288.html)

Pages: 1 2


RE: Scripting Problems ! - AmnesiaIsScary :S - 09-14-2011

(09-14-2011, 04:24 PM)Your Computer Wrote:
(09-14-2011, 04:10 PM)AmnesiaIsScary :S Wrote: Anyone ^ ?

StopPlayerLookAt();

Refer to http://wiki.frictionalgames.com/hpl2/amnesia/script_functions for anything else
I tried to do it ... I put the stopplayerlookat(); and it didn't do anything ...
And if i put it in the
{
SetSwingDoorClosed("DoorClose", true, true);
GiveSanityDamage(3, true);
PlayGuiSound("scare_slam_door.snt", 0.5f);
PlayGuiSound("react_pant2.ogg", 0.5f);
StartPlayerLookAt("DoorClose", 5, 10, "");
StopPlayerLookAt();
}

It stops immediately without even looking at what i want ...

Can you show me the exact script I need to put with what I showed in my reply ?





RE: Scripting Problems ! - Your Computer - 09-14-2011

(09-14-2011, 05:16 PM)AmnesiaIsScary :S Wrote: Can you show me the exact script I need to put with what I showed in my reply ?

Code:
StartPlayerLookAt("DoorClose", 5, 10, "StopPlayerLookAt");



RE: Scripting Problems ! - AmnesiaIsScary :S - 09-14-2011

(09-14-2011, 05:22 PM)Your Computer Wrote:
(09-14-2011, 05:16 PM)AmnesiaIsScary :S Wrote: Can you show me the exact script I need to put with what I showed in my reply ?

Code:
StartPlayerLookAt("DoorClose", 5, 10, "StopPlayerLookAt");
Thank You . (A lot , XD Im dumb..)