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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finishing it off [SOLVED] THE STORY'S OUT!!!!!
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#9
RE: Finishing it off

From the scripts recollection thread:

StartPlayerLookAt(ScriptArea, viewacceleration, maxviewvelocity, onlook);
ScriptArea is the name of the area script you place in your map and where the player looks.
viewacceleration controls how fast the player looks.
maxviewvelocity controls the max speed the player looks.
onlook is a function you call when the player's view is centered on the target.
To stop the player from looking at a spot, call StopPlayerLookAt();
Example:
void TimerDoneLookAt(string &in asTimer)
{
  StopPlayerLookAt();
}

//When player starts the level, make him look at this spot.
void OnStart()
{
  // Function argument is empty since we don't want to call a function.
  StartPlayerLookAt("AreaLookAt", 2, 2, "");

  //Make the player look for 2.5 seconds
  AddTimer("donelook", 2.5f, "TimerDoneLookAt");
}
05-14-2011, 09:59 PM
Find


Messages In This Thread
RE: Finishing it off - by Kyle - 05-14-2011, 06:50 PM
RE: Finishing it off - by Karai16 - 05-14-2011, 07:18 PM
RE: Finishing it off - by Kyle - 05-14-2011, 07:22 PM
RE: Finishing it off - by Acies - 05-14-2011, 07:24 PM
RE: Finishing it off - by Karai16 - 05-14-2011, 08:53 PM
RE: Finishing it off - by Kyle - 05-14-2011, 09:27 PM
RE: Finishing it off - by Karai16 - 05-14-2011, 09:46 PM
RE: Finishing it off - by Roenlond - 05-14-2011, 09:59 PM
RE: Finishing it off - by Karai16 - 05-14-2011, 10:25 PM



Users browsing this thread: 1 Guest(s)