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
Surprised Looking Script Help
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#2
RE: Surprised Looking Script Help

If the name of the script you want the player to trigger is 'area_name':
void OnStart()
{
AddEntityCollideCallback("Player", "area_name", "script_callback", true, 1);
}

void script_callback(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("door_name", 10.0f, 10.0f, "");
AddTimer("", 1.0f, "stoplook");
}

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

[Image: signature-2.png]
(This post was last modified: 03-31-2011, 10:32 PM by Streetboat.)
03-31-2011, 10:27 PM
Find


Messages In This Thread
Surprised Looking Script Help - by Simpanra - 03-31-2011, 10:00 PM
RE: Surprised Looking Script Help - by Streetboat - 03-31-2011, 10:27 PM
RE: Surprised Looking Script Help - by Simpanra - 03-31-2011, 11:30 PM
RE: Surprised Looking Script Help - by MrBigzy - 04-01-2011, 12:44 AM
RE: Surprised Looking Script Help - by Simpanra - 04-01-2011, 07:23 AM
RE: Surprised Looking Script Help - by Simpanra - 04-01-2011, 09:21 AM
RE: Surprised Looking Script Help - by MrBigzy - 04-01-2011, 03:43 PM



Users browsing this thread: 3 Guest(s)