Frictional Games Forum (read-only)
How to force script works? (Solved) - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: How to force script works? (Solved) (/thread-8347.html)



How to force script works? (Solved) - HumiliatioN - 05-30-2011

Okay simple why this is not working? What I am doing wrong here?

Script:

AddEntityCollideCallback("Player", "LookArea", "Wallwrite", true, 1);

void Wallwrite (string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("Wallwrite", 2, 2, "");
AddTimer("donelook", 3.5f, "TimerDoneLookAt");
}

void TimerDoneLookAt(string &in asTimer)
{
StopPlayerLookAt();
}

Yep and its Forced to look some writing on walls. Justine files..

Help is appreciated. Thanks. Sleepy



RE: Little help with "Forced look script" - Tanshaydar - 05-30-2011

Is there an entity or area named Wallwrite?


RE: Little help with "Forced look script" - HumiliatioN - 05-30-2011

(05-30-2011, 05:50 PM)Tanshaydar Wrote: Is there an entity or area named Wallwrite?

It has to be an entity? I have that paint with some writing on wall.


RE: Little help with "Forced look script" - Tanshaydar - 05-30-2011

If it's a painting, then it's an entity. If it's not, place there a Script Area and name it Wallwrite, player will look there.


RE: Little help with "Forced look script" - HumiliatioN - 05-30-2011

(05-30-2011, 05:58 PM)Tanshaydar Wrote: If it's a painting, then it's an entity. If it's not, place there a Script Area and name it Wallwrite, player will look there.

You mean two Script areas ?


RE: Little help with "Forced look script" - Tanshaydar - 05-30-2011

LookArea is your script area to collide with player.
Make another area to force player to look at. Name it Wallwrite.

One area to collide, one area to look at.


RE: Little help with "Forced look script" - HumiliatioN - 05-30-2011

(05-30-2011, 06:04 PM)Tanshaydar Wrote: LookArea is your script area to collide with player.
Make another area to force player to look at. Name it Wallwrite.

One area to collide, one area to look at.

Thanks it works. Idiot me Big Grin
By the way.. Do you know how the do Script: "Scared and you drop lantern accidentally on ground then pick it up?