Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to force script works? (Solved)
HumiliatioN Offline
Posting Freak

Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation: 18
#1
How to force script works? (Solved)

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

“Life is a game, play it”
(This post was last modified: 05-31-2011, 10:48 AM by HumiliatioN.)
05-30-2011, 05:44 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: Little help with "Forced look script"

Is there an entity or area named Wallwrite?

05-30-2011, 05:50 PM
Website Find
HumiliatioN Offline
Posting Freak

Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation: 18
#3
RE: Little help with "Forced look script"

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

“Life is a game, play it”
05-30-2011, 05:53 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#4
RE: Little help with "Forced look script"

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
Website Find
HumiliatioN Offline
Posting Freak

Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation: 18
#5
RE: Little help with "Forced look script"

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

“Life is a game, play it”
05-30-2011, 06:02 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#6
RE: Little help with "Forced look script"

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
Website Find
HumiliatioN Offline
Posting Freak

Posts: 1,179
Threads: 64
Joined: Dec 2010
Reputation: 18
#7
RE: Little help with "Forced look script"

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

“Life is a game, play it”
(This post was last modified: 05-30-2011, 06:28 PM by HumiliatioN.)
05-30-2011, 06:05 PM
Find




Users browsing this thread: 1 Guest(s)