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!!!!!
Karai16 Offline
Member

Posts: 164
Threads: 24
Joined: Apr 2011
Reputation: 0
#10
RE: Finishing it off

(05-14-2011, 09:59 PM)Roenlond Wrote: 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();

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");
}
Thanks, going to try and see if it works Smile
------
EDIT: it works! thank y'all a bunch! Maybe I can get my map done tonight!

Custom stories:
Her Games (100% Complete)
Her Games, All Bugs Fixed (100% Complete)
(This post was last modified: 05-14-2011, 10:42 PM by Karai16.)
05-14-2011, 10:25 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)