Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


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

Posts: 1,132
Joined: Dec 2010
Reputation: 16
Post: #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 all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,086
Joined: Mar 2009
Reputation: 66
Post: #2
RE: Little help with "Forced look script"

Is there an entity or area named Wallwrite?

05-30-2011 05:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
HumiliatioN Offline
Posting Freak

Posts: 1,132
Joined: Dec 2010
Reputation: 16
Post: #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 all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,086
Joined: Mar 2009
Reputation: 66
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
HumiliatioN Offline
Posting Freak

Posts: 1,132
Joined: Dec 2010
Reputation: 16
Post: #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 all posts by this user Quote this message in a reply
Tanshaydar Offline
From Beyond

Posts: 3,086
Joined: Mar 2009
Reputation: 66
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
HumiliatioN Offline
Posting Freak

Posts: 1,132
Joined: Dec 2010
Reputation: 16
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)