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
Problems Trying To Script
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#2
RE: Problems Trying To Script

Where do you want the player to hear this load noise? What kind of load noise? Specific noise? ID/Name of closed door?

I'll try my best.

OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Function01", true, 1);
}
void Funtion01(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("[door name]", 2, 4, "");
AddTimer("", [however long you want the player to look at door], "StopLooking");
}
void StopLooking(string &in asTimer)
{
StopPlayerLookAt();
}

That's mostly all I can do for now.

(This post was last modified: 04-22-2011, 05:05 AM by Kyle.)
04-22-2011, 04:56 AM
Find


Messages In This Thread
Problems Trying To Script - by D3AD UPR1S1NG - 04-22-2011, 04:47 AM
RE: Problems Trying To Script - by Kyle - 04-22-2011, 04:56 AM
RE: Problems Trying To Script - by D3AD UPR1S1NG - 04-22-2011, 05:00 AM
RE: Problems Trying To Script - by Kyle - 04-22-2011, 05:08 AM
RE: Problems Trying To Script - by D3AD UPR1S1NG - 04-22-2011, 05:11 AM
RE: Problems Trying To Script - by D3AD UPR1S1NG - 04-22-2011, 02:01 PM
RE: Problems Trying To Script - by Kyle - 04-22-2011, 02:36 PM



Users browsing this thread: 1 Guest(s)