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
Script Help Easy Cuestion
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#5
RE: Easy Cuestion

What you'd do here is to make a script area where you want the player to start looking behind, then add the AddEntityCollideCallback("Player", "AreaName", "FunctionName", true, 1); inside OnStart(). Don't forget to edit the AreaName to your area, and the FunctionName to whatever you'd like to name the event.

Then add this:
void FunctionName(string &in asParent, string &in asChild, int alState)
{
    StartPlayerLookAt("DoorName", 20, 25, "CallbackName");
}
Again, don't forget to edit it to your DoorName and another CallbackName. You can edit the numbers to change the speed at which the player turns.

Lastly:
void CallbackName()
{
    StopPlayerLookAt();
}

(This post was last modified: 03-11-2014, 09:22 PM by Mudbill.)
03-11-2014, 09:20 PM
Find


Messages In This Thread
Easy Cuestion - by Straxedix - 03-11-2014, 08:42 PM
RE: Easy Cuestion - by Neelke - 03-11-2014, 08:50 PM
RE: Easy Cuestion - by Straxedix - 03-11-2014, 08:53 PM
RE: Easy Cuestion - by Neelke - 03-11-2014, 09:17 PM
RE: Easy Cuestion - by Mudbill - 03-11-2014, 09:20 PM
RE: Easy Cuestion - by Straxedix - 03-11-2014, 09:30 PM
RE: Easy Cuestion - by Mudbill - 03-11-2014, 09:38 PM
RE: Easy Cuestion - by Straxedix - 03-11-2014, 09:41 PM
RE: Easy Cuestion - by Mudbill - 03-11-2014, 09:57 PM
RE: Easy Cuestion - by Straxedix - 03-11-2014, 09:59 PM
RE: Easy Cuestion - by Mudbill - 03-11-2014, 10:08 PM
RE: Easy Cuestion - by Straxedix - 03-12-2014, 01:28 PM
RE: Easy Cuestion - by Neelke - 03-12-2014, 02:05 PM
RE: Easy Cuestion - by Romulator - 03-12-2014, 02:13 PM
RE: Easy Cuestion - by Straxedix - 03-12-2014, 05:57 PM
RE: Easy Cuestion - by Neelke - 03-12-2014, 06:01 PM
RE: Easy Cuestion - by Straxedix - 03-12-2014, 07:27 PM



Users browsing this thread: 2 Guest(s)