Frictional Games Forum (read-only)

Full Version: How to force script works? (Solved)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Is there an entity or area named Wallwrite?
(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.
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.
(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 ?
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.
(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?